]> git.lyx.org Git - lyx.git/commitdiff
"System Default" viewer/editor option
authorDaniel Ramoeller <d.lyx@web.de>
Sun, 7 Aug 2022 15:57:39 +0000 (17:57 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 8 Aug 2022 07:18:39 +0000 (09:18 +0200)
Fix for bug #12571. More user friendly way to set the system default application aka "auto" option.

src/frontends/qt/GuiPrefs.cpp

index 31da12936fd1a3577a2ac200aaf3855591ae0fee..e6074712993a03234d4b073c27a6995db64e3a2b 100644 (file)
@@ -2325,6 +2325,7 @@ void PrefFileformats::updateViewers()
        viewerCO->blockSignals(true);
        viewerCO->clear();
        viewerCO->addItem(qt_("None"), QString());
+       viewerCO->addItem(qt_("System Default"), QString("auto"));
        updateComboBox(viewer_alternatives, f.name(), viewerCO);
        viewerCO->addItem(qt_("Custom"), QString("custom viewer"));
        viewerCO->blockSignals(false);
@@ -2348,6 +2349,7 @@ void PrefFileformats::updateEditors()
        editorCO->blockSignals(true);
        editorCO->clear();
        editorCO->addItem(qt_("None"), QString());
+       editorCO->addItem(qt_("System Default"), QString("auto"));
        updateComboBox(editor_alternatives, f.name(), editorCO);
        editorCO->addItem(qt_("Custom"), QString("custom editor"));
        editorCO->blockSignals(false);