--- hatari/src/gui-sdl/dlgRom.c 2019/04/01 07:11:58 1.1.1.1 +++ hatari/src/gui-sdl/dlgRom.c 2019/04/01 07:12:23 1.1.1.2 @@ -4,7 +4,7 @@ This file is distributed under the GNU Public License, version 2 or at your option any later version. Read the file gpl.txt for details. */ -char DlgRom_rcsid[] = "Hatari $Id: dlgRom.c,v 1.1.1.1 2019/04/01 07:11:58 root Exp $"; +char DlgRom_rcsid[] = "Hatari $Id: dlgRom.c,v 1.1.1.2 2019/04/01 07:12:23 root Exp $"; #include "main.h" #include "configuration.h" @@ -67,12 +67,11 @@ void DlgRom_Main(void) do { - but = SDLGui_DoDialog(romdlg); + but = SDLGui_DoDialog(romdlg, NULL); switch (but) { case DLGROM_TOSBROWSE: strcpy(tmpname, DialogParams.Rom.szTosImageFileName); - File_MakeAbsoluteName(tmpname); if (SDLGui_FileSelect(tmpname, NULL, FALSE)) /* Show and process the file selection dlg */ { strcpy(DialogParams.Rom.szTosImageFileName, tmpname); @@ -96,7 +95,7 @@ void DlgRom_Main(void) break; } } - while (but!=DLGROM_EXIT && !bQuitProgram); + while (but != DLGROM_EXIT && but != SDLGUI_QUIT && !bQuitProgram); free(tmpname); }