From 448a04d2bbf7db4767cf733ba70ecbca37b90093 Mon Sep 17 00:00:00 2001 From: vayne Date: Thu, 28 Sep 2006 20:42:03 +0000 Subject: bug fix for replaying files when double clicking in the playlist. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20002 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/win32/dialogs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Gui') 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; -- cgit v1.2.3