# HG changeset patch # User vayne # Date 1160418110 0 # Node ID a16eef9ffef69a69ace949a56774037b6443d634 # Parent b5c68feff55c8240af99dcb037f650238a4f2d8d fixed a crash bug as a result of the last change, as well as file skipping (hopefully) diff -r b5c68feff55c -r a16eef9ffef6 Gui/win32/dialogs.c --- a/Gui/win32/dialogs.c Mon Oct 09 18:00:54 2006 +0000 +++ b/Gui/win32/dialogs.c Mon Oct 09 18:21:50 2006 +0000 @@ -531,9 +531,9 @@ case ID_TRACKLIST: if(HIWORD(wParam) == LBN_DBLCLK) { - if(guiIntfStruct.Playing && selected) - pl->current = selected - 2; - else if(selected) pl->current = selected - 1; + if(selected) pl->current = selected - 1; + mplSetFileName(NULL, pl->tracks[pl->current]->filename, STREAMTYPE_STREAM); + mplGotoTheNext = 0; gui->startplay(gui); } return 0; @@ -552,6 +552,7 @@ case ID_PLAY: { if(selected) pl->current = selected - 1; + mplSetFileName(NULL, pl->tracks[pl->current]->filename, STREAMTYPE_STREAM); mplGotoTheNext = 0; gui->startplay(gui); break;