From 4d3847fc45c6700ec1667d9616c8f91b734cb75d Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 May 2010 07:05:07 +0000 Subject: Fixed minor UI display glitch git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1123872 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kcontrol/randr/krandrtray.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) { -- cgit v1.2.1