[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.3/kdebase/workspace/plasma/shells/desktop
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2009-07-30 23:41:13
Message-ID: 1248997273.729881.1695.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1004812 by aseigo:

only show the toolbox on the very first time plasma is run by that user
BUG:201984


 M  +4 -3      dashboardview.cpp  


--- branches/KDE/4.3/kdebase/workspace/plasma/shells/desktop/dashboardview.cpp #1004811:1004812
@@ -280,7 +280,6 @@
         m_zoomIn = action ? action->isEnabled() : false;
         newContainment->enableAction("zoom out", false);
         newContainment->enableAction("zoom in", false);
-        newContainment->openToolBox();
     }
 
     if (m_appletBrowser) {
@@ -318,12 +317,14 @@
     //kDebug() << "DashboardView::suppressShowTimeout";
     m_suppressShow = false;
 
-    if (!config().readEntry("DashboardShown", false)) {
+    KConfigGroup cg(KGlobal::config(), "Dashboard");
+    if (!cg.readEntry("DashboardShown", false)) {
         // the first time we show the user the dashboard, expand
         // the toolbox; some people don't know how to get out of it at first
         // so we do this as a hint for them
         containment()->openToolBox();
-        config().writeEntry("DashboardShown", true);
+        cg.writeEntry("DashboardShown", true);
+        configNeedsSaving();
     }
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic