diff options
author | anbr <vdr07@deltab.de> | 2013-03-23 10:38:10 +0100 |
---|---|---|
committer | anbr <vdr07@deltab.de> | 2013-03-23 10:38:10 +0100 |
commit | 49f5d794deaab5001782ce74a3ab36b7f7251579 (patch) | |
tree | 28fc0989fb4b86f62293be1a3714ea8e61e59bb2 | |
parent | 958443c2debab111101a4705be854b2349510158 (diff) | |
download | vdr-plugin-dvdswitch-49f5d794deaab5001782ce74a3ab36b7f7251579.tar.gz vdr-plugin-dvdswitch-49f5d794deaab5001782ce74a3ab36b7f7251579.tar.bz2 |
Crash when image directory is empty (Closes: #1308)
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | menu.c | 7 |
2 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,8 @@ VDR Plugin 'dvdswitch' Revision History --------------------------------------- + +- Fix: Crash when image directory is empty, Patch from Matthias Schwarzott (#1308) + 2012-10-03: Version 0.2.1 - Create image - show wrong selected sub folder - Can't assign keymappping with 'Commands' (Closes: #1015) @@ -740,9 +740,10 @@ eOSState cMainMenu::MenuMove(eKeys Key) SetHelp(); mItem = (cMainMenuItem*)Get(Current()); - MainMenuOptions.setLastSelectItemName(mItem->FileName()); - MainMenuOptions.LastSelectItemType(mItem->Type()); - + if(mItem) { + MainMenuOptions.setLastSelectItemName(mItem->FileName()); + MainMenuOptions.LastSelectItemType(mItem->Type()); + } return state; } |