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

List:       kde-commits
Subject:    playground/base/plasma/applets/systemloadviewer
From:       Matthew John Dawson <matthewjd () gmail ! com>
Date:       2009-01-09 21:45:10
Message-ID: 1231537510.945903.863.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 908539 by mdawson:

The call to disconnectCPUSources needs to be above the change in the value of \
m_showMultiCPU, otherwise the old sources won't be disconnected.


 M  +2 -1      systemloadviewer.cpp  


--- trunk/playground/base/plasma/applets/systemloadviewer/systemloadviewer.cpp \
#908538:908539 @@ -285,9 +285,9 @@
         cg.writeEntry("vertical", verticalBars());
     }
     if (uiGeneral.chkShowAllProcessors->isChecked() != m_showMultiCPU) {
+        disconnectCPUSources();
         m_showMultiCPU = uiGeneral.chkShowAllProcessors->isChecked();
         cg.writeEntry("show_multiple_cpus", m_showMultiCPU);
-        disconnectCPUSources();
         reconnectCPUSources();
     }
     if (uiGeneral.spbxUpdateInterval->value() != m_updateInterval) {
@@ -338,6 +338,7 @@
     if (source == "system/cores" && m_showMultiCPU) {
         if (data["value"].toUInt() != m_numCPUs) {
             reconnectCPUSources();
+            updateConstraints(Plasma::SizeConstraint);
         }
     } else if (source.startsWith("cpu/system/") && !m_showMultiCPU) {
         if (source.endsWith("/user")) {


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

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