From 3ff9de1f30b067c482bdf70b759d0c6bdbc519f0 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 28 Jun 2011 09:16:17 +0000 Subject: [PATCH] neutrino menu: paint shortcut numebr only if item is active We should do the same as with icons. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1557 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/94765187bc030fa36d2d926cf097e46e382a95e9 Author: Thilo Graf Date: 2011-06-28 (Tue, 28 Jun 2011) Origin message was: ------------------ *neutrino menu: paint shortcut numebr only if item is active We should do the same as with icons. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1557 e54a6e83-5905-42d5-8d5c-058d10e6a962 ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 121e07918..f0e5e998a 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -250,7 +250,7 @@ void CMenuItem::paintItemButton(const bool select_mode, const int &item_height, } //paint only number if no icon was painted and keyval is numeric - if (CRCInput::isNumeric(directKey) && !icon_painted) + if (active && CRCInput::isNumeric(directKey) && !icon_painted) { int number_w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(CRCInput::getKeyName(directKey));