changeset 19996:aa7bb6ae26a7

bug fix for replaying files when double clicking in the playlist.
author vayne
date Thu, 28 Sep 2006 20:42:03 +0000
parents 9cd5e242121e
children adc8bfbb3628
files Gui/win32/dialogs.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/win32/dialogs.c	Wed Sep 27 21:45:15 2006 +0000
+++ b/Gui/win32/dialogs.c	Thu Sep 28 20:42:03 2006 +0000
@@ -531,8 +531,9 @@
                 case ID_TRACKLIST:
                     if(HIWORD(wParam) == LBN_DBLCLK)
                     {
-                        if(selected) pl->current = selected - 1;
-                        mplGotoTheNext = 0;
+                        if(guiIntfStruct.Playing && selected)
+                            pl->current = selected - 2;
+                        else if(selected) pl->current = selected - 1;
                         gui->startplay(gui);
                     }
                     return 0;