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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/generic/applets/systemtray/ui (silent)
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2010-12-26 10:44:43
Message-ID: 20101226104443.041B6AC8AB () svn ! kde ! org
[Download RAW message or body]

SVN commit 1209286 by aseigo:

SVN_SILENT: cleanup


 M  +3 -2      applet.cpp  


--- trunk/KDE/kdebase/workspace/plasma/generic/applets/systemtray/ui/applet.cpp \
#1209285:1209286 @@ -426,6 +426,7 @@
         if (containment() && containment()->corona()) {
             unlockAction = containment()->corona()->action("lock widgets");
         }
+
         if (unlockAction) {
             disconnect(m_visibleItemsUi.unlockButton, SIGNAL(clicked()), this, \
                SLOT(unlockContainment()));
             connect(m_visibleItemsUi.unlockButton, SIGNAL(clicked()), unlockAction, \
SLOT(trigger()), Qt::UniqueConnection); @@ -629,11 +630,11 @@
         KComboBox *itemCombo = static_cast<KComboBox *>(hiddenList->itemWidget(item, \
                1));
         //kDebug() << (item->checkState() == Qt::Checked) << \
                item->data(Qt::UserRole).toString();
         const QString taskTypeId = item->data(0, Qt::UserRole).toString();
+        if (itemCombo->currentIndex() == 1) {
         //Always hidden
-        if (itemCombo->currentIndex() == 1) {
             hiddenTypes << taskTypeId;
+        } else if (itemCombo->currentIndex() == 2) {
         //Always visible
-        } else if (itemCombo->currentIndex() == 2) {
             alwaysShownTypes << taskTypeId;
         }
 


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

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