diff options
author | 2010-01-03 12:42:56 +0100 | |
---|---|---|
committer | 2010-01-03 12:42:56 +0100 | |
commit | 82ce02e8c04ec7345befe3f4a876adc6583f43b4 (patch) | |
tree | ff52953f10f0950a76d6e3fcc3845d0afb8aca23 /plugins/gtkui/gtkplaylist.c | |
parent | a8ab352afa206f50a67dc0a2ac87e1ad6e018f9f (diff) |
don't handle doubleclicks outside of valid tracks
Diffstat (limited to 'plugins/gtkui/gtkplaylist.c')
-rw-r--r-- | plugins/gtkui/gtkplaylist.c | 3 |
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) { |