From 548281e69d6779304f260a7b0889cadea38c93b6 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 29 Feb 2020 21:47:45 +0200 Subject: [PATCH] GUI reset button: copy whole current GUI config to active config. --- od-win32/win32gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index 1e0b6d26..3778f80c 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -2468,6 +2468,9 @@ static void gui_to_prefs(void) { /* Always copy our prefs to changed_prefs, ... */ copy_prefs(&workprefs, &changed_prefs); + if (quit_program == -UAE_RESET_HARD) { + copy_prefs(&workprefs, &currprefs); + } /* filesys hack */ currprefs.mountitems = changed_prefs.mountitems; memcpy (&currprefs.mountconfig, &changed_prefs.mountconfig, MOUNT_CONFIG_SIZE * sizeof (struct uaedev_config_info)); -- 2.47.3