summaryrefslogtreecommitdiff
path: root/plugins/gtkui/mainplaylist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-09-29 19:53:07 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-09-29 19:53:07 +0200
commit81e8c8ab6c6fe60e844e76c02315e6238bb3f97b (patch)
tree0427dd0716acd02258574e8ed26ab71337358030 /plugins/gtkui/mainplaylist.c
parent5fa0da2d9b0edf78097a0d29b1bde3c260a36af4 (diff)
gtkui: get rid of all pl_save_all calls in favor of pl_save_current
Diffstat (limited to 'plugins/gtkui/mainplaylist.c')
-rw-r--r--plugins/gtkui/mainplaylist.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c
index 617e81cc..cfc81a83 100644
--- a/plugins/gtkui/mainplaylist.c
+++ b/plugins/gtkui/mainplaylist.c
@@ -116,9 +116,12 @@ main_drag_n_drop (DdbListviewIter before, DdbPlaylistHandle from_playlist, uint3
else {
deadbeef->plt_move_items (plt, PL_MAIN, (ddb_playlist_t *)from_playlist, (DB_playItem_t *)before, indices, length);
}
+ if (!copy && from_playlist != plt) {
+ deadbeef->plt_save_config (from_playlist);
+ }
+ deadbeef->plt_save_config (plt);
deadbeef->plt_unref (plt);
deadbeef->pl_unlock ();
- deadbeef->pl_save_all ();
}
void main_external_drag_n_drop (DdbListviewIter before, char *mem, int length) {
@@ -189,7 +192,7 @@ void main_draw_group_title (DdbListview *listview, cairo_t *drawable, DdbListvie
void
main_delete_selected (void) {
deadbeef->pl_delete_selected ();
- deadbeef->pl_save_all ();
+ deadbeef->pl_save_current();
main_refresh ();
search_refresh ();
}