prepare for physical song/dir deletion implementation
This commit is contained in:
@@ -484,12 +484,13 @@ int main(int argc, char *argv[])
|
||||
Playlist::BlockNowPlayingUpdate = 0;
|
||||
}
|
||||
}
|
||||
else if (myScreen == myBrowser || myScreen->ActiveWindow() == myPlaylistEditor->Playlists)
|
||||
else if (
|
||||
(myScreen == myBrowser && !myBrowser->Main()->Empty() && myBrowser->Main()->Current().type == itPlaylist)
|
||||
|| (myScreen->ActiveWindow() == myPlaylistEditor->Playlists)
|
||||
)
|
||||
{
|
||||
LockStatusbar();
|
||||
string name = myScreen == myBrowser ? myBrowser->Main()->Current().name : myPlaylistEditor->Playlists->Current();
|
||||
if (myScreen != myBrowser || myBrowser->Main()->Current().type == itPlaylist)
|
||||
{
|
||||
Statusbar() << "Delete playlist " << name << " ? [y/n] ";
|
||||
curs_set(1);
|
||||
int in = 0;
|
||||
@@ -510,9 +511,12 @@ int main(int argc, char *argv[])
|
||||
ShowMessage("Aborted!");
|
||||
curs_set(0);
|
||||
myPlaylistEditor->Playlists->Clear(0); // make playlists list update itself
|
||||
}
|
||||
UnlockStatusbar();
|
||||
}
|
||||
else if (myScreen == myBrowser && !myBrowser->Main()->Empty() && myBrowser->Main()->Current().type != itPlaylist)
|
||||
{
|
||||
// delete song/dir implementation here
|
||||
}
|
||||
else if (myScreen->ActiveWindow() == myPlaylistEditor->Content && !myPlaylistEditor->Content->Empty())
|
||||
{
|
||||
if (myPlaylistEditor->Content->hasSelected())
|
||||
|
||||
Reference in New Issue
Block a user