attempt to remove items physically only if mpd_music_dir is set

This commit is contained in:
Andrzej Rybczak
2009-06-06 08:04:28 +02:00
parent a6e4f9cdd7
commit 12a7d847c1

View File

@@ -565,6 +565,9 @@ int main(int argc, char *argv[])
}
else if (myScreen == myBrowser && !myBrowser->Main()->Empty() && myBrowser->Main()->Current().type != itPlaylist)
{
if (!Config.local_browser)
CHECK_MPD_MUSIC_DIR;
MPD::Item &item = myBrowser->Main()->Current();
if (item.type == itSong && !Config.allow_physical_files_deletion)