From cfa61fa8160be9037ce432fd3c976a1ed04ff555 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Sun, 17 Aug 2014 17:01:20 -0400 Subject: [PATCH] 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 --- gui/gui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/gui.cpp b/gui/gui.cpp index a9c54d99..5c21cdd5 100644 --- a/gui/gui.cpp +++ b/gui/gui.cpp @@ -107,9 +107,10 @@ static void on_ban_toggled() { Gtk::ToggleButton *ban = get_widget("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"); }