summaryrefslogtreecommitdiffstats
path: root/src/toplevel.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-06-11 17:21:49 -0500
committerTimothy Pearson <[email protected]>2012-06-11 17:21:49 -0500
commit02d6ef6446dc03f56abde8d71852f69c91403af8 (patch)
treea934bd1826cadfb41db4eecb01ed6fd7c6ab277b /src/toplevel.cpp
parent3dbc24a1beb0abfd191e5cfd35cec261ef219c22 (diff)
downloadkerberostray-02d6ef6446dc03f56abde8d71852f69c91403af8.tar.gz
kerberostray-02d6ef6446dc03f56abde8d71852f69c91403af8.zip
Final upload from initial development system
Diffstat (limited to 'src/toplevel.cpp')
-rw-r--r--src/toplevel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/toplevel.cpp b/src/toplevel.cpp
index 99cb1f7..3b80d2d 100644
--- a/src/toplevel.cpp
+++ b/src/toplevel.cpp
@@ -119,6 +119,7 @@ TopLevel::~TopLevel()
void TopLevel::load() {
KConfig* config = KGlobal::instance()->config();
config->setGroup(NULL);
+ autostart = config->readBoolEntry("Autostart", true);
notifyExpiry = config->readBoolEntry("notifyExpiry", true);
notifyExpiryMinutes = config->readNumEntry("notifyExpiryMinutes", 5);
}
@@ -126,6 +127,7 @@ void TopLevel::load() {
void TopLevel::save() {
KConfig* config = KGlobal::instance()->config();
config->setGroup(NULL);
+ config->writeEntry("Autostart", autostart);
config->writeEntry("notifyExpiry", notifyExpiry);
config->writeEntry("notifyExpiryMinutes", notifyExpiryMinutes);
config->sync();