From 2f8ae15b669cc48d33e8b72f1069ea4a1a56b120 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 26 Jun 2017 20:53:12 +0200 Subject: [PATCH] - moviebrowser: fix deletion of non-marked movies via mute-key (cherry picked from commit 895aa1ca8cbd6ecf4f254c361a6bec633e9483f1) Signed-off-by: Thilo Graf --- src/gui/moviebrowser/mb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index f513de08a..9d3a3e27f 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -2480,7 +2480,7 @@ bool CMovieBrowser::onDelete(bool cursor_only) MI_MOVIE_INFO *movieinfo; movieinfo = NULL; - if (cursor_only) + if (cursor_only || (filelist.empty() || movielist.empty())) { filelist.clear(); movielist.clear();