summaryrefslogtreecommitdiff
path: root/plugins/gtkui/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gtkui/search.c')
-rw-r--r--plugins/gtkui/search.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/gtkui/search.c b/plugins/gtkui/search.c
index 4d73f659..ee096930 100644
--- a/plugins/gtkui/search.c
+++ b/plugins/gtkui/search.c
@@ -369,7 +369,12 @@ void search_handle_doubleclick (DdbListview *listview, DdbListviewIter iter, int
void search_selection_changed (DdbListviewIter it, int idx) {
DdbListview *main = DDB_LISTVIEW (lookup_widget (mainwin, "playlist"));
- ddb_listview_draw_row (main, main_get_idx ((DB_playItem_t *)it), it);
+ if (idx == -1) {
+ ddb_listview_refresh (main, DDB_REFRESH_LIST | DDB_EXPOSE_LIST);
+ }
+ else {
+ ddb_listview_draw_row (main, main_get_idx ((DB_playItem_t *)it), it);
+ }
}
void