Automatic editor mode: change default for SVG to Image Viewer

This will give precedence to viewing SVG images over editing them as XML.
I suppose it makes sense, because most users will load images from disk
or using an application and will generally want to view them and not
editing them.

This also makes more sense for 4e5f117851
This commit is contained in:
mgr
2021-07-23 20:06:33 +02:00
parent 21f483abd0
commit d5937c6d71
+1 -1
View File
@@ -1011,6 +1011,7 @@ void EditDialog::switchEditorMode(bool autoSwitchForType)
// Switch automatically the editing mode according to the detected data.
switch (dataType) {
case Image:
case SVG:
ui->comboMode->setCurrentIndex(ImageEditor);
break;
case Binary:
@@ -1026,7 +1027,6 @@ void EditDialog::switchEditorMode(bool autoSwitchForType)
case JSON:
ui->comboMode->setCurrentIndex(JsonEditor);
break;
case SVG:
case XML:
ui->comboMode->setCurrentIndex(XmlEditor);
break;