From: sirakaba Date: Mon, 30 Jul 2012 11:44:59 +0000 (+0000) Subject: 設定ファイルに書き込めない場合にエラーダイアログが表示されるのを抑制。 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=190dd37297b316ae3593fb78bc995deaa71dd9a5;p=tpi%2Flychee.git 設定ファイルに書き込めない場合にエラーダイアログが表示されるのを抑制。 git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@626 9df91469-1e22-0410-86e7-ea8537beb833 --- diff --git a/doc/history.html b/doc/history.html index 555764b..ada14b9 100644 --- a/doc/history.html +++ b/doc/history.html @@ -35,6 +35,7 @@
diff --git a/src/lychee/cls_config.cpp b/src/lychee/cls_config.cpp index 84194ea..3f86982 100644 --- a/src/lychee/cls_config.cpp +++ b/src/lychee/cls_config.cpp @@ -74,6 +74,12 @@ myConfig::myConfig() : wxFileConfig(wxEmptyString, wxEmptyString, L_DIR_BIN wxT( myConfig::~myConfig() { + // 設定ファイルに書き込めない場合にエラーダイアログが表示されるのを抑制。 + if (! wxFileName::IsFileWritable(L_DIR_BIN wxT("lychee.conf"))) + { + wxLog::EnableLogging(false); + } + if (this->bWriteHistory) { this->myWriteHistoryLoop(CONF_HISTORY_PATH);