diff libgui/src/gui-settings.h @ 31640:e518e1f7e944

Backed out changeset 34c3cd39c4b9 Revert change because there is code that uses gui_pref.ignore, but only on MAC_OS: global_use_native_dialogs in gui-preferences-global.h. Are there others?
author John W. Eaton <jwe@octave.org>
date Mon, 05 Dec 2022 10:17:17 -0500
parents 474e184321d3
children 431f80aba37a
line wrap: on
line diff
--- a/libgui/src/gui-settings.h	Sun Dec 04 22:57:02 2022 -0500
+++ b/libgui/src/gui-settings.h	Mon Dec 05 10:17:17 2022 -0500
@@ -75,6 +75,9 @@
 
     QVariant value (const gui_pref& pref) const
     {
+      if (pref.ignore)
+        return pref.def;  // ignore the current pref and always use default
+
       return value (pref.key, pref.def);
     }