From 809274d750383bae4eaeb870752808e0a5787ce7 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 21 Dec 2015 23:38:00 +0100 Subject: [PATCH] - menue: don't paint hotkey icons on deactivated items; use dummy icon --- src/gui/widget/menue.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index eae54ebe1..c8683702c 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -340,6 +340,9 @@ void CMenuItem::paintItemButton(const bool select_mode, int item_height, const c //get data of number icon and paint if (icon_name && *icon_name) { + if (!active) + icon_name = NEUTRINO_ICON_BUTTON_DUMMY_SMALL; + frameBuffer->getIconSize(icon_name, &icon_w, &icon_h); if (/*active &&*/ icon_w>0 && icon_h>0 && icon_space_x >= icon_w)