diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-03-20 17:07:31 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-03-20 17:07:31 +0100 |
commit | 188c308bb24d760aefd16f0a7189f5e005fa63be (patch) | |
tree | 55e67ff6e9736b5dd4d73ccb53d3f3b83592c9e7 /plugins | |
parent | 074097b6c41d1dd6d01a4fa7e257bafb310f5692 (diff) |
fixed crash after removing last playlist
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/ddbtabstrip.c | 2 |
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); } } |