From: sirakaba Date: Sat, 28 Jan 2012 09:18:17 +0000 (+0000) Subject: 先のコミットを巻き戻し。 X-Git-Tag: 0.01beta14~14 X-Git-Url: http://git.osdn.net/view?p=tpi%2Flychee.git;a=commitdiff_plain;h=16b985963d98fc670876344ab6fbdb655f10f7c1 先のコミットを巻き戻し。 git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@595 9df91469-1e22-0410-86e7-ea8537beb833 --- diff --git a/doc/history.html b/doc/history.html index 1d08cc2..ace2612 100644 --- a/doc/history.html +++ b/doc/history.html @@ -35,7 +35,6 @@
Lychee
diff --git a/src/lychee/cls_config.cpp b/src/lychee/cls_config.cpp index 15311dd..84194ea 100644 --- a/src/lychee/cls_config.cpp +++ b/src/lychee/cls_config.cpp @@ -70,14 +70,11 @@ myConfig::myConfig() : wxFileConfig(wxEmptyString, wxEmptyString, L_DIR_BIN wxT( this->myReadHistory(CONF_HISTORY_FULL, i); } this->bWriteHistory = false; - - // 設定ファイルが書き込めるか調査。 - this->bWritable = ::wxFileName::IsFileWritable(L_DIR_BIN wxT("lychee.conf")); } myConfig::~myConfig() { - if (this->bWritable && this->bWriteHistory) + if (this->bWriteHistory) { this->myWriteHistoryLoop(CONF_HISTORY_PATH); this->myWriteHistoryLoop(CONF_HISTORY_NAME); @@ -108,17 +105,17 @@ bool myConfig::ReadId(myConfigId confId, bool defaultVal) bool myConfig::WriteId(myConfigId confId, const wxString & value) { - return this->bWritable && this->Write(this->label[confId], value); + return this->Write(this->label[confId], value); } bool myConfig::WriteId(myConfigId confId, int value) { - return this->bWritable && this->Write(this->label[confId], value); + return this->Write(this->label[confId], value); } bool myConfig::WriteId(myConfigId confId, bool value) { - return this->bWritable && this->Write(this->label[confId], value); + return this->Write(this->label[confId], value); } //****************************************************************************** diff --git a/src/lychee/cls_config.h b/src/lychee/cls_config.h index 4aff5b9..366a277 100644 --- a/src/lychee/cls_config.h +++ b/src/lychee/cls_config.h @@ -85,7 +85,7 @@ public: private: wxString label[CONF_LAST]; wxArrayString asHistory[CONF_HISTORY_COUNT - CONF_HISTORY_PATH]; - bool bWriteHistory, bWritable; + bool bWriteHistory; void myReadHistory(myConfigId confId, size_t i); void myWriteHistory(myConfigId confId, size_t i);