summaryrefslogtreecommitdiffstats
path: root/kcontrol/randr/krandrtray.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-05-07 07:05:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-05-07 07:05:07 +0000
commit4d3847fc45c6700ec1667d9616c8f91b734cb75d (patch)
tree9021d124fbfc574546c24938c1cac09483460995 /kcontrol/randr/krandrtray.cpp
parent2624f98aa1dca16b22ca078d2c23a049ec67fabf (diff)
downloadtdebase-4d3847fc45c6700ec1667d9616c8f91b734cb75d.tar.gz
tdebase-4d3847fc45c6700ec1667d9616c8f91b734cb75d.zip
Fixed minor UI display glitch
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1123872 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/randr/krandrtray.cpp')
-rw-r--r--kcontrol/randr/krandrtray.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kcontrol/randr/krandrtray.cpp b/kcontrol/randr/krandrtray.cpp
index 292d51380..adfe48e5f 100644
--- a/kcontrol/randr/krandrtray.cpp
+++ b/kcontrol/randr/krandrtray.cpp
@@ -188,9 +188,11 @@ void KRandRSystemTray::contextMenuAboutToShow(KPopupMenu* menu)
addOutputMenu(menu);
// Find any user ICC profiles
- menu->insertTitle(SmallIcon("kcoloredit"), i18n("Color Profile"));
QStringList cfgProfiles;
cfgProfiles = t_config->groupList();
+ if (cfgProfiles.isEmpty() == false) {
+ menu->insertTitle(SmallIcon("kcoloredit"), i18n("Color Profile"));
+ }
for (QStringList::Iterator t(cfgProfiles.begin()); t != cfgProfiles.end(); ++t) {
lastIndex = menu->insertItem(*t);
if (t_config->readEntry("CurrentProfile") == (*t)) {