summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
Diffstat (limited to 'Gui')
-rw-r--r--Gui/win32/dialogs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Gui/win32/dialogs.c b/Gui/win32/dialogs.c
index 8a977a3b13..ebd5e3822a 100644
--- a/Gui/win32/dialogs.c
+++ b/Gui/win32/dialogs.c
@@ -531,8 +531,9 @@ static LRESULT CALLBACK PlayListWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPA
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;