summaryrefslogtreecommitdiffstats
path: root/kcontrol/randr/tderandrtray.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-05-09 14:17:33 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-05-09 14:17:33 -0500
commit77cbd6e9576edc206b1610ea9495e502a3639068 (patch)
treef1b52c360ea4af6903632bc0169230352ffa0012 /kcontrol/randr/tderandrtray.cpp
parentf08ddb4652c6658ce3ad294509e101da468c1af6 (diff)
downloadtdebase-77cbd6e9576edc206b1610ea9495e502a3639068.tar.gz
tdebase-77cbd6e9576edc206b1610ea9495e502a3639068.zip
Fix theme manager overwriting undefined theme settings with garbage
This resolves Bug 1174 Fix tderandrtray displaying profile list when only the default profile is available
Diffstat (limited to 'kcontrol/randr/tderandrtray.cpp')
-rw-r--r--kcontrol/randr/tderandrtray.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kcontrol/randr/tderandrtray.cpp b/kcontrol/randr/tderandrtray.cpp
index 87346818c..4d998efd7 100644
--- a/kcontrol/randr/tderandrtray.cpp
+++ b/kcontrol/randr/tderandrtray.cpp
@@ -280,14 +280,14 @@ void KRandRSystemTray::contextMenuAboutToShow(TDEPopupMenu* menu)
// Find any display profiles
TQStringList displayProfiles;
displayProfiles = getDisplayConfigurationProfiles(locateLocal("config", "/", true));
- if (displayProfiles.isEmpty() == false) {
+ if (!displayProfiles.isEmpty()) {
menu->insertTitle(SmallIcon("background"), i18n("Display Profiles"));
- }
- lastIndex = menu->insertItem(SmallIcon("bookmark"), "<default>");
- menu->connectItem(lastIndex, this, TQT_SLOT(slotDisplayProfileChanged(int)));
- for (TQStringList::Iterator t(displayProfiles.begin()); t != displayProfiles.end(); ++t) {
- lastIndex = menu->insertItem(SmallIcon("bookmark"), *t);
+ lastIndex = menu->insertItem(SmallIcon("bookmark"), "<default>");
menu->connectItem(lastIndex, this, TQT_SLOT(slotDisplayProfileChanged(int)));
+ for (TQStringList::Iterator t(displayProfiles.begin()); t != displayProfiles.end(); ++t) {
+ lastIndex = menu->insertItem(SmallIcon("bookmark"), *t);
+ menu->connectItem(lastIndex, this, TQT_SLOT(slotDisplayProfileChanged(int)));
+ }
}
}