summaryrefslogtreecommitdiff
path: root/plugins/gtkui
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gtkui')
-rw-r--r--plugins/gtkui/gtkplaylist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/gtkui/gtkplaylist.c b/plugins/gtkui/gtkplaylist.c
index b5fa1d31..3a9ec4be 100644
--- a/plugins/gtkui/gtkplaylist.c
+++ b/plugins/gtkui/gtkplaylist.c
@@ -548,9 +548,8 @@ gtkpl_mouse1_pressed (gtkplaylist_t *ps, int state, int ex, int ey, double time)
&& fabs(ps->lastpos[0] - ex) < 3
&& fabs(ps->lastpos[1] - ey) < 3) {
// doubleclick - play this item
- if (deadbeef->pl_get_cursor (ps->iterator) != -1) {
+ if (y != -1 && deadbeef->pl_get_cursor (ps->iterator) != -1) {
DB_playItem_t *it = deadbeef->pl_get_for_idx_and_iter (deadbeef->pl_get_cursor (ps->iterator), ps->iterator);
-// SELECT (it, 1);
int r = deadbeef->pl_get_idx_of (it);
int prev = deadbeef->pl_get_cursor (ps->iterator);
if (prev != r) {