aboutsummaryrefslogtreecommitdiffhomepage
path: root/Gui/win32
diff options
context:
space:
mode:
authorGravatar vayne <vayne@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-28 20:42:03 +0000
committerGravatar vayne <vayne@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-28 20:42:03 +0000
commit448a04d2bbf7db4767cf733ba70ecbca37b90093 (patch)
tree4a1fbb476f306be588d1b679c4c0ecacc8501763 /Gui/win32
parent8ada2d6b870f0e7b102859c78c66382ddd5b3532 (diff)
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
Diffstat (limited to 'Gui/win32')
-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;