summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/cfg.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/checkbook/cfg.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/checkbook/cfg.cpp15
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
@@ -45,2 +45,3 @@ Cfg::Cfg()
_pCategories=new CategoryList();
+ _bDirty=false;
}
@@ -54,4 +55,2 @@ void Cfg::readStringList(Config &cfg, const char *sKey, QStringList &lst)
{
-qDebug( "%s", sKey );
-
QString sEntry;
@@ -88,2 +87,3 @@ void Cfg::readConfig(Config &config)
_showLastTab = config.readBoolEntry( "ShowLastTab", FALSE );
+ _bSavePayees = config.readBoolEntry( "SavePayees", FALSE );
@@ -102,2 +102,5 @@ void Cfg::readConfig(Config &config)
+ // Payees
+ readStringList(config, "Payee", _Payees);
+
// Read Categories
@@ -133,2 +136,5 @@ void Cfg::readConfig(Config &config)
}
+
+ // not dirty
+ _bDirty=false;
}
@@ -168,2 +174,3 @@ void Cfg::writeConfig(Config &config)
config.writeEntry( "ShowLastTab", _showLastTab );
+ config.writeEntry( "SavePayees", _bSavePayees );
@@ -172,2 +179,5 @@ void Cfg::writeConfig(Config &config)
+ // write payees
+ writeStringList(config, "Payee", _Payees);
+
// write categories
@@ -178,2 +188,3 @@ void Cfg::writeConfig(Config &config)
config.write();
+ _bDirty=false;
}