From 0ae233212b67275eb11aaffa33ecc70f41dda857 Mon Sep 17 00:00:00 2001 From: martii Date: Fri, 6 Dec 2013 19:23:23 +0100 Subject: [PATCH] gui/widget/menue: clear old menue hint if none is set for current item Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c954efc59fed6dd18ad21ba5d0746c1fb1da3638 Author: martii Date: 2013-12-06 (Fri, 06 Dec 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index b6e59d197..80d950993 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -1070,7 +1070,7 @@ void CMenuWidget::paintHint(int pos) if (details_line) savescreen ? details_line->hide() : details_line->kill(); /* clear info box */ - if ((info_box) && (pos == -1)) + if ((info_box) && (pos < 0)) savescreen ? info_box->hide(true) : info_box->kill(); hint_painted = false; } @@ -1080,8 +1080,10 @@ void CMenuWidget::paintHint(int pos) CMenuItem* item = items[pos]; if (item->hintIcon.empty() && item->hint == NONEXISTANT_LOCALE) { - if (info_box) - info_box->hide(false); + if (info_box) { + info_box->kill(); + hint_painted = false; + } return; }