diff --git a/plugins/cocoaui/Playlist/PlaylistViewController.m b/plugins/cocoaui/Playlist/PlaylistViewController.m index 3510925b4e..e626570b61 100644 --- a/plugins/cocoaui/Playlist/PlaylistViewController.m +++ b/plugins/cocoaui/Playlist/PlaylistViewController.m @@ -1336,6 +1336,8 @@ - (void)sortColumn:(DdbListviewCol_t)column { deadbeef->plt_sort_v2 (plt, PL_MAIN, c->type, (c->sortFormat && c->sortFormat[0]) ? c->sortFormat : c->format, self.columns[column].sort_order); deadbeef->plt_unref (plt); + deadbeef->sendmessage (DB_EV_PLAYLISTCHANGED, 0, DDB_PLAYLIST_CHANGE_CONTENT, 0); + PlaylistView *lv = (PlaylistView *)self.view; lv.headerView.needsDisplay = YES; } diff --git a/plugins/cocoaui/Playlist/SearchViewController.m b/plugins/cocoaui/Playlist/SearchViewController.m index b66d97a26c..b9d2fdceaa 100644 --- a/plugins/cocoaui/Playlist/SearchViewController.m +++ b/plugins/cocoaui/Playlist/SearchViewController.m @@ -96,6 +96,7 @@ - (void)sortColumn:(DdbListviewCol_t)column withOrder:(int)order { ddb_playlist_t *plt = deadbeef->plt_get_curr (); deadbeef->plt_sort_v2 (plt, PL_SEARCH, c->type, c->format, order-1); deadbeef->plt_unref (plt); + deadbeef->sendmessage (DB_EV_PLAYLISTCHANGED, 0, DDB_PLAYLIST_CHANGE_CONTENT, 0); } @end diff --git a/plugins/gtkui/playlist/plcommon.c b/plugins/gtkui/playlist/plcommon.c index d6485abdc9..05f384cb1c 100644 --- a/plugins/gtkui/playlist/plcommon.c +++ b/plugins/gtkui/playlist/plcommon.c @@ -1125,6 +1125,7 @@ pl_common_col_sort (DdbListviewColumnSortOrder sort_order, int iter, void *user_ char *format = (c->sort_format && strlen(c->sort_format)) ? c->sort_format : c->format; deadbeef->plt_sort_v2 (plt, iter, c->id, format, sort_order == DdbListviewColumnSortOrderDescending ? DDB_SORT_DESCENDING : DDB_SORT_ASCENDING); deadbeef->plt_unref (plt); + deadbeef->sendmessage (DB_EV_PLAYLISTCHANGED, 0, DDB_PLAYLIST_CHANGE_CONTENT, 0); } void