summaryrefslogtreecommitdiff
path: root/plugins/gtkui/trkproperties.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-19 21:20:56 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-19 21:20:56 +0200
commitc8dbc585400905a78a94834facfa283ce1ee4708 (patch)
tree5b44d50c9579820d4b7981dbfc85039c59feb8b5 /plugins/gtkui/trkproperties.c
parent619bad2797e4a12aa9eef60373124a63c000968f (diff)
send trackinfochanged after changing track metadata
Diffstat (limited to 'plugins/gtkui/trkproperties.c')
-rw-r--r--plugins/gtkui/trkproperties.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/gtkui/trkproperties.c b/plugins/gtkui/trkproperties.c
index 9e9ffb2a..8dc5302d 100644
--- a/plugins/gtkui/trkproperties.c
+++ b/plugins/gtkui/trkproperties.c
@@ -582,6 +582,13 @@ on_write_tags_clicked (GtkButton *button,
gtk_tree_model_foreach (model, set_metadata_cb, NULL);
deadbeef->pl_unlock ();
+ for (int i = 0; i < numtracks; i++) {
+ ddb_event_track_t *ev = (ddb_event_track_t *)deadbeef->event_alloc (DB_EV_TRACKINFOCHANGED);
+ ev->track = tracks[i];
+ deadbeef->pl_item_ref (ev->track);
+ deadbeef->event_send ((ddb_event_t*)ev, 0, 0);
+ }
+
progress_aborted = 0;
progressdlg = create_progressdlg ();
gtk_window_set_title (GTK_WINDOW (progressdlg), _("Writing tags..."));