mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
do not crash when leaving an empty menu with ok & right
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1127 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1c400862cd
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-02-09 (Wed, 09 Feb 2011)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -541,7 +541,7 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
case (CRCInput::RC_right):
|
||||
case (CRCInput::RC_ok):
|
||||
{
|
||||
if(hasItem()) {
|
||||
if(hasItem() && selected > -1) {
|
||||
//exec this item...
|
||||
CMenuItem* item = items[selected];
|
||||
item->msg = msg;
|
||||
|
Reference in New Issue
Block a user