summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2013-03-23 10:40:35 +0100
committeranbr <vdr07@deltab.de>2013-03-23 10:40:35 +0100
commitc30b9cedd2d5368791be9cfb013b9e20f167b1f0 (patch)
tree2e7cb41728f7e9b93138343b76c0cf6acbf33de2 /menu.c
parent49f5d794deaab5001782ce74a3ab36b7f7251579 (diff)
downloadvdr-plugin-dvdswitch-c30b9cedd2d5368791be9cfb013b9e20f167b1f0.tar.gz
vdr-plugin-dvdswitch-c30b9cedd2d5368791be9cfb013b9e20f167b1f0.tar.bz2
Don't try to move file without selection
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 010a491..fabbf7d 100644
--- a/menu.c
+++ b/menu.c
@@ -867,7 +867,9 @@ eOSState cMainMenu::Commands(eKeys Key)
}
break;
case cmdImgMove:
- return AddSubMenu(new cCMDMove(ImageList, mItem->FileName(), this, false, true));
+ if(mItem) {
+ return AddSubMenu(new cCMDMove(ImageList, mItem->FileName(), this, false, true));
+ }
break;
case cmdImgDelete:
if(mItem && mItem->Type() == iDVD)