summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kcontrol/konq/desktopbehavior_impl.cpp2
-rw-r--r--kdesktop/krootwm.cc14
2 files changed, 15 insertions, 1 deletions
diff --git a/kcontrol/konq/desktopbehavior_impl.cpp b/kcontrol/konq/desktopbehavior_impl.cpp
index 9b2da7cf7..6b4aaadb0 100644
--- a/kcontrol/konq/desktopbehavior_impl.cpp
+++ b/kcontrol/konq/desktopbehavior_impl.cpp
@@ -300,7 +300,7 @@ void DesktopBehavior::load()
void DesktopBehavior::load( bool useDefaults )
{
- g_pConfig->setReadDefaults( useDefaults );
+ g_pConfig->setReadDefaults( useDefaults );
g_pConfig->setGroup( "Desktop Icons" );
bool bShowHidden = g_pConfig->readBoolEntry("ShowHidden", DEFAULT_SHOW_HIDDEN_ROOT_ICONS);
showHiddenBox->setChecked(bShowHidden);
diff --git a/kdesktop/krootwm.cc b/kdesktop/krootwm.cc
index 8769de363..95b0a3cb7 100644
--- a/kdesktop/krootwm.cc
+++ b/kdesktop/krootwm.cc
@@ -522,6 +522,20 @@ void KRootWm::slotToggleAutoAlign( bool b )
KDesktopSettings::setAutoLineUpIcons( b );
KDesktopSettings::writeConfig();
+ // Also save it globally...
+ int desktop = KApplication::desktop()->primaryScreen();
+ TQCString cfilename;
+ if (desktop == 0)
+ cfilename = "kdesktoprc";
+ else
+ cfilename.sprintf("kdesktop-screen-%drc", desktop);
+
+ KConfig *kdg_config = new KConfig(cfilename, false, false);
+ kdg_config->setGroup( "General" );
+ kdg_config->writeEntry( "AutoLineUpIcons", autoLineupIconsBox->isChecked() );
+ kdg_config->sync();
+ delete kdg_config;
+
// Auto line-up icons
m_pDesktop->iconView()->setAutoAlign( b );
}