improve code formatting
This commit is contained in:
@@ -2759,11 +2759,20 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
else if (Keypressed(input, Key.AddSelected))
|
||||
{
|
||||
if (wCurrent == mPlaylist || wCurrent == mBrowser || wCurrent == mSearcher || wCurrent == mLibSongs || wCurrent == mPlaylistEditor)
|
||||
{
|
||||
if (wCurrent != mPlaylist
|
||||
&& wCurrent != mBrowser
|
||||
&& wCurrent != mSearcher
|
||||
&& wCurrent != mLibSongs
|
||||
&& wCurrent != mPlaylistEditor)
|
||||
continue;
|
||||
|
||||
List *mList = reinterpret_cast<Menu<Song> *>(wCurrent);
|
||||
if (mList->hasSelected())
|
||||
if (!mList->hasSelected())
|
||||
{
|
||||
ShowMessage("No selected items!");
|
||||
continue;
|
||||
}
|
||||
|
||||
vector<size_t> list;
|
||||
mList->GetSelected(list);
|
||||
SongList result;
|
||||
@@ -2906,7 +2915,6 @@ int main(int argc, char *argv[])
|
||||
Mpd->CommitQueue();
|
||||
ShowMessage("Selected items added to playlist '%s'!", playlist.c_str());
|
||||
}
|
||||
|
||||
}
|
||||
else if (id > 1 && id < mDialog->Size()-1)
|
||||
{
|
||||
@@ -2928,10 +2936,6 @@ int main(int argc, char *argv[])
|
||||
delete mDialog;
|
||||
FreeSongList(result);
|
||||
}
|
||||
else
|
||||
ShowMessage("No selected items!");
|
||||
}
|
||||
}
|
||||
else if (Keypressed(input, Key.Crop))
|
||||
{
|
||||
if (mPlaylist->hasSelected())
|
||||
|
||||
Reference in New Issue
Block a user