summaryrefslogtreecommitdiff
path: root/plugins/gtkui/fileman.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-15 22:07:28 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-15 22:07:28 +0200
commitdb25ef2216cc7e5ba9d7ff7c30ac3b184ee11577 (patch)
tree0033f905b14f9cfc854433a9a9b9cdeef9670edc /plugins/gtkui/fileman.c
parente575295f6e6e85b8a408347ab4536720ccb26ed2 (diff)
multiple drag-n-drop improvements
Diffstat (limited to 'plugins/gtkui/fileman.c')
-rw-r--r--plugins/gtkui/fileman.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/gtkui/fileman.c b/plugins/gtkui/fileman.c
index 8ef81238..0a5fb851 100644
--- a/plugins/gtkui/fileman.c
+++ b/plugins/gtkui/fileman.c
@@ -156,6 +156,10 @@ strcopy_special (char *dest, const char *src, int len) {
static gboolean
set_dnd_cursor_idle (gpointer data) {
DdbListview *listview = DDB_LISTVIEW (lookup_widget (mainwin, "playlist"));
+ if (!data) {
+ ddb_listview_set_cursor (listview, -1);
+ return FALSE;
+ }
int cursor = deadbeef->pl_get_idx_of (DB_PLAYITEM (data));
ddb_listview_set_cursor (listview, cursor);
return FALSE;