gui/widget/menue.cpp: dont repaint menu on help key, if no hints

Origin commit data
------------------
Branch: ni/coolstream
Commit: e52367edd8
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-07-19 (Thu, 19 Jul 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-07-19 17:30:53 +04:00
parent 0a1ce8d5f9
commit e5133dbcba

View File

@@ -691,8 +691,11 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
} }
break; break;
case (CRCInput::RC_help): case (CRCInput::RC_help):
// FIXME should we switch hints in menu without hints ?
if (has_hints)
hide(); hide();
g_settings.show_menu_hints = !g_settings.show_menu_hints; g_settings.show_menu_hints = !g_settings.show_menu_hints;
if (has_hints)
paint(); paint();
break; break;
@@ -778,7 +781,7 @@ void CMenuWidget::calcSize()
if (tmpw > width) if (tmpw > width)
width = tmpw; width = tmpw;
if(g_settings.show_menu_hints && (!items[i]->hintIcon.empty() || items[i]->hint != NONEXISTANT_LOCALE)) { if(!items[i]->hintIcon.empty() || items[i]->hint != NONEXISTANT_LOCALE) {
has_hints = true; has_hints = true;
} }
} }