mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
"System Default" viewer/editor option
Fix for bug #12571. More user friendly way to set the system default application aka "auto" option.
This commit is contained in:
parent
d68cef8d2d
commit
9e645a5cfc
@ -2325,6 +2325,7 @@ void PrefFileformats::updateViewers()
|
|||||||
viewerCO->blockSignals(true);
|
viewerCO->blockSignals(true);
|
||||||
viewerCO->clear();
|
viewerCO->clear();
|
||||||
viewerCO->addItem(qt_("None"), QString());
|
viewerCO->addItem(qt_("None"), QString());
|
||||||
|
viewerCO->addItem(qt_("System Default"), QString("auto"));
|
||||||
updateComboBox(viewer_alternatives, f.name(), viewerCO);
|
updateComboBox(viewer_alternatives, f.name(), viewerCO);
|
||||||
viewerCO->addItem(qt_("Custom"), QString("custom viewer"));
|
viewerCO->addItem(qt_("Custom"), QString("custom viewer"));
|
||||||
viewerCO->blockSignals(false);
|
viewerCO->blockSignals(false);
|
||||||
@ -2348,6 +2349,7 @@ void PrefFileformats::updateEditors()
|
|||||||
editorCO->blockSignals(true);
|
editorCO->blockSignals(true);
|
||||||
editorCO->clear();
|
editorCO->clear();
|
||||||
editorCO->addItem(qt_("None"), QString());
|
editorCO->addItem(qt_("None"), QString());
|
||||||
|
editorCO->addItem(qt_("System Default"), QString("auto"));
|
||||||
updateComboBox(editor_alternatives, f.name(), editorCO);
|
updateComboBox(editor_alternatives, f.name(), editorCO);
|
||||||
editorCO->addItem(qt_("Custom"), QString("custom editor"));
|
editorCO->addItem(qt_("Custom"), QString("custom editor"));
|
||||||
editorCO->blockSignals(false);
|
editorCO->blockSignals(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user