From 5cfe75a0c244981345d6a31299cb147dfecc0393 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Thu, 19 Mar 2009 18:48:58 +0100 Subject: [PATCH] Revert "limit clear and crop function to playlist/playlist editor" This was silly idea, I did this so no one could clear the playlist by accident, but I forgot about the common situation when one can just clear playlist and add new songs e.g. form browser immediately. This reverts commit 047dabd41ab6f1c131ef04ecae0e20150251ab00. --- src/ncmpcpp.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index dd38088c..cbafe914 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -1463,7 +1463,7 @@ int main(int argc, char *argv[]) myPlaylist->EnableHighlighting(); FreeSongList(result); } - else if (Keypressed(input, Key.Crop) && myScreen == myPlaylist) + else if (Keypressed(input, Key.Crop)) { CHECK_PLAYLIST_FOR_FILTERING; if (myPlaylist->Main()->hasSelected()) @@ -1501,8 +1501,6 @@ int main(int argc, char *argv[]) } else if (Keypressed(input, Key.Clear)) { - if (myScreen != myPlaylist && myScreen != myPlaylistEditor) - continue; if (myPlaylist->Main()->isFiltered()) { ShowMessage("Deleting filtered items...");