Infoclock: unify handling in some classes with singleton

Origin commit data
------------------
Branch: ni/coolstream
Commit: 59d9b7068e
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-29 (Mon, 29 Feb 2016)


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

------------------
This commit was generated by Migit
This commit is contained in:
2016-02-29 08:05:05 +01:00
parent 096952212b
commit 112207f338
5 changed files with 17 additions and 18 deletions

View File

@@ -459,8 +459,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
}
}
extern CInfoClock *InfoClock;
InfoClock->enableInfoClock(false);
CInfoClock::getInstance()->enableInfoClock(false);
// show menu if there are more than 2 items only
// otherwise, we start the item directly (must be the last one)
if (menu_items > 1 )
@@ -468,7 +467,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
else if (last_menu_item)
last_menu_item->exec( NULL );
InfoClock->enableInfoClock(true);
CInfoClock::getInstance()->enableInfoClock(true);
CNeutrinoApp::getInstance()->StartSubtitles();
if (button < COL_BUTTONMAX)