diff options
author | waker <wakeroid@gmail.com> | 2011-07-03 12:43:04 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-07-03 12:43:04 +0200 |
commit | 8267376ed6e3cc8f47bc8a324da0c156b64f20b6 (patch) | |
tree | d65e4dc7a963a7950f956b44a9cd9734d30e564d /plugins/gtkui/fileman.c | |
parent | 4eefbdb7038a364d310c0e3e082244e1278fa789 (diff) |
save playlists and config after adding files/folders
Diffstat (limited to 'plugins/gtkui/fileman.c')
-rw-r--r-- | plugins/gtkui/fileman.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/gtkui/fileman.c b/plugins/gtkui/fileman.c index 8947c821..30357fa8 100644 --- a/plugins/gtkui/fileman.c +++ b/plugins/gtkui/fileman.c @@ -74,12 +74,16 @@ gtkpl_add_files (GSList *lst) { g_slist_free (lst); deadbeef->pl_add_files_end (); deadbeef->plt_unref (plt); + deadbeef->pl_save_all (); + deadbeef->conf_save (); } static void add_dirs_worker (void *data) { GSList *lst = (GSList *)data; gtkpl_add_dirs (lst); + deadbeef->pl_save_all (); + deadbeef->conf_save (); } void @@ -104,6 +108,8 @@ static void open_files_worker (void *data) { GSList *lst = (GSList *)data; gtkpl_add_files (lst); + deadbeef->pl_save_all (); + deadbeef->conf_save (); gtkui_playlist_changed (); extern GtkWidget *mainwin; DdbListview *pl = DDB_LISTVIEW (lookup_widget (mainwin, "playlist")); |