diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-09-26 15:01:28 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-09-26 15:01:28 +0200 |
commit | 74ba92ebc78e60ad140198db9694777a17d4fa16 (patch) | |
tree | bfa406e184e70ac2292453c9b754eca1b5f6e6ce /plugins/gtkui/search.c | |
parent | 241c1d792750e8bbffd7e2ebcd200a4034115991 (diff) |
fixed several hangs/slowdowns/bugs in playlist selection code
Diffstat (limited to 'plugins/gtkui/search.c')
-rw-r--r-- | plugins/gtkui/search.c | 7 |
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 |