summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-03-20 17:07:31 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-03-20 17:07:31 +0100
commit188c308bb24d760aefd16f0a7189f5e005fa63be (patch)
tree55e67ff6e9736b5dd4d73ccb53d3f3b83592c9e7 /plugins
parent074097b6c41d1dd6d01a4fa7e257bafb310f5692 (diff)
fixed crash after removing last playlist
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/ddbtabstrip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/gtkui/ddbtabstrip.c b/plugins/gtkui/ddbtabstrip.c
index 3fd063d0..11e6391f 100644
--- a/plugins/gtkui/ddbtabstrip.c
+++ b/plugins/gtkui/ddbtabstrip.c
@@ -552,6 +552,8 @@ on_remove_playlist1_activate (GtkMenuItem *menuitem,
{
if (tab_clicked != -1) {
deadbeef->plt_remove (tab_clicked);
+ int playlist = deadbeef->plt_get_curr ();
+ deadbeef->conf_set_int ("playlist.current", playlist);
}
}