summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/main.cc
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-05-23 21:54:28 -0500
committerTimothy Pearson <[email protected]>2012-05-23 21:54:28 -0500
commit345d1e78808b657437e48ea299fb9af557ab111e (patch)
tree3e5018f72ae45deded3ee5a1cded87294db533eb /kdesktop/lock/main.cc
parentde4e7b41598b4c8db0948e4c2c216d73e952f7bb (diff)
downloadtdebase-345d1e78808b657437e48ea299fb9af557ab111e.tar.gz
tdebase-345d1e78808b657437e48ea299fb9af557ab111e.zip
Fix kdesktop_lock not reacting to settings changes until it is restarted
Diffstat (limited to 'kdesktop/lock/main.cc')
-rw-r--r--kdesktop/lock/main.cc16
1 files changed, 5 insertions, 11 deletions
diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc
index 8bc7808ea..8f6f76b28 100644
--- a/kdesktop/lock/main.cc
+++ b/kdesktop/lock/main.cc
@@ -204,15 +204,9 @@ int main( int argc, char **argv )
app.disableSessionManagement();
KGlobal::locale()->insertCatalogue("libdmctl");
- // we need to read from the right rc file - possibly taking screen number in account
- KDesktopSettings::instance("kdesktoprc");
-
- trinity_desktop_lock_use_system_modal_dialogs = !KDesktopSettings::useUnmanagedLockWindows();
- trinity_desktop_lock_delay_screensaver_start = KDesktopSettings::delaySaverStart();
-
struct stat st;
KSimpleConfig* tdmconfig;
- OPEN_TDMCONFIG_AND_SET_GROUP
+ OPEN_TDMCONFIG_AND_SET_GROUP
trinity_desktop_lock_use_sak = tdmconfig->readBoolEntry("UseSAK", true);
LockProcess process;
@@ -271,10 +265,10 @@ int main( int argc, char **argv )
}
}
- // Reload settings to make sure they reflect reality
- KDesktopSettings::self()->config()->reparseConfiguration();
- delete tdmconfig;
- OPEN_TDMCONFIG_AND_SET_GROUP
+ // load settings here so that they actually reflect reality
+ // there is no way to force a reload once KDesktopSettings::instance has been called!
+ // we need to read from the right rc file - possibly taking screen number in account
+ KDesktopSettings::instance("kdesktoprc");
trinity_desktop_lock_use_system_modal_dialogs = !KDesktopSettings::useUnmanagedLockWindows();
trinity_desktop_lock_delay_screensaver_start = KDesktopSettings::delaySaverStart();
if (trinity_desktop_lock_use_system_modal_dialogs) {