Diffstat (limited to 'noncore/apps/checkbook/cfg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/cfg.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/noncore/apps/checkbook/cfg.cpp b/noncore/apps/checkbook/cfg.cpp index 1e0ec5c..0d5d9ed 100644 --- a/noncore/apps/checkbook/cfg.cpp +++ b/noncore/apps/checkbook/cfg.cpp @@ -44,4 +44,5 @@ Cfg::Cfg() _showBalances=FALSE; _pCategories=new CategoryList(); + _bDirty=false; } @@ -53,6 +54,4 @@ Cfg::Cfg() void Cfg::readStringList(Config &cfg, const char *sKey, QStringList &lst) { -qDebug( "%s", sKey ); - QString sEntry; int iCount; @@ -87,4 +86,5 @@ void Cfg::readConfig(Config &config) _sLastBook = config.readEntry("LastBook", ""); _showLastTab = config.readBoolEntry( "ShowLastTab", FALSE ); + _bSavePayees = config.readBoolEntry( "SavePayees", FALSE ); // Account types @@ -101,4 +101,7 @@ void Cfg::readConfig(Config &config) } + // Payees + readStringList(config, "Payee", _Payees); + // Read Categories QStringList lst; @@ -132,4 +135,7 @@ void Cfg::readConfig(Config &config) setCategories(lst); } + + // not dirty + _bDirty=false; } @@ -167,8 +173,12 @@ void Cfg::writeConfig(Config &config) config.writeEntry( "LastBook", _sLastBook ); config.writeEntry( "ShowLastTab", _showLastTab ); + config.writeEntry( "SavePayees", _bSavePayees ); // write account types writeStringList(config, "AccType", _AccountTypes); + // write payees + writeStringList(config, "Payee", _Payees); + // write categories QStringList lst=getCategories(); @@ -177,4 +187,5 @@ void Cfg::writeConfig(Config &config) // commit write config.write(); + _bDirty=false; } |