From f0eaffa31dd823b6c6b9fba0ba5ff85af33034bb Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 7 Nov 2011 20:34:52 +0000 Subject: [PATCH] neutrino timerlist: don't show info button on empty timerlist git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1835 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/19f28a9391adf052bd551f8ee35c1a72f54d14c6 Author: Thilo Graf Date: 2011-11-07 (Mon, 07 Nov 2011) Origin message was: ------------------ *neutrino timerlist: don't show info button on empty timerlist git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1835 e54a6e83-5905-42d5-8d5c-058d10e6a962 ------------------ This commit was generated by Migit --- src/gui/timerlist.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index 6835d590b..f47ef755c 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -857,7 +857,10 @@ void CTimerList::paintHead() g_Locale->getText(LOCALE_TIMERLIST_NAME), COL_MENUHEAD, 0, true); // UTF-8 frameBuffer->getIconSize(NEUTRINO_ICON_TIMER, &icol_w, &icol_h); - frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_HELP, x + width - icol_w - 10, y, theight); + + //don't show info button on empty timerlist + if (!timerlist.empty()) + frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_HELP, x + width - icol_w - 10, y, theight); } const struct button_label TimerListButtons[4] =