diff options
author | waker <wakeroid@gmail.com> | 2009-09-02 08:28:47 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-09-02 08:28:47 +0200 |
commit | fb48738e15221251ce243214be391552dcf2d3b1 (patch) | |
tree | ec1a1ac39701f719ef1b7a40dd5aaa9d24623e7e /gtkplaylist.c | |
parent | 2a4e13a9eb85a79d08a0ed7e31de97d760bdf2cd (diff) |
fixed starting song with double click in search window
Diffstat (limited to 'gtkplaylist.c')
-rw-r--r-- | gtkplaylist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtkplaylist.c b/gtkplaylist.c index 6cf3073a..e1fb904a 100644 --- a/gtkplaylist.c +++ b/gtkplaylist.c @@ -504,9 +504,11 @@ gtkpl_mouse1_pressed (gtkplaylist_t *ps, int state, int ex, int ey, double time) && fabs(ps->lastpos[1] - ey) < 3) { // doubleclick - play this item if (ps->row != -1) { + gtkplaylist_t main_playlist; playItem_t *it = gtkpl_get_for_idx (ps, ps->row); it->selected = 1; - messagepump_push (M_PLAYSONGNUM, 0, ps->row, 0); + int r = pl_get_idx_of (it); + messagepump_push (M_PLAYSONGNUM, 0, r, 0); return; } |