gui: Play next song after banning

If the user tells us they don't like the current song then we shouldn't
keep playing it!

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2014-08-17 17:01:20 -04:00
parent d185b29d7b
commit cfa61fa816
1 changed files with 3 additions and 2 deletions

View File

@ -107,9 +107,10 @@ static void on_ban_toggled()
{
Gtk::ToggleButton *ban = get_widget<Gtk::ToggleButton>("o_ban");
if (ban->get_active() == true)
if (ban->get_active() == true) {
playlist :: add(audio :: current_track(), "Banned");
else
on_next();
} else
playlist :: del(audio::current_track(), "Banned");
}