summaryrefslogtreecommitdiffstats
path: root/kcontrol/randr/krandrtray.cpp
diff options
context:
space:
mode:
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)) {