diff options
author | waker <wakeroid@gmail.com> | 2011-02-26 20:20:51 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-02-26 20:20:51 +0100 |
commit | 8c945ee529692ebcd0e87e03001140c3c9d19260 (patch) | |
tree | d837c65c4a03e28d3a1ff10248c969ea6e7165db | |
parent | f5d99624cccecf90f26eb12c64406feccbcc1050 (diff) |
don't crash on add location
-rw-r--r-- | plugins/gtkui/gtkui.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index bdf71d36..d49be24c 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -805,7 +805,9 @@ on_add_location_activate (GtkMenuItem *menuitem, if (entry) { const char *text = gtk_entry_get_text (entry); if (text) { + deadbeef->pl_add_files_begin (deadbeef->plt_get_curr ()); deadbeef->pl_add_file (text, NULL, NULL); + deadbeef->pl_add_files_end (); playlist_refresh (); } } |