Skip to content

Commit d5937c6

Browse files
committed
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 4e5f117
1 parent 21f483a commit d5937c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EditDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,7 @@ void EditDialog::switchEditorMode(bool autoSwitchForType)
10111011
// Switch automatically the editing mode according to the detected data.
10121012
switch (dataType) {
10131013
case Image:
1014+
case SVG:
10141015
ui->comboMode->setCurrentIndex(ImageEditor);
10151016
break;
10161017
case Binary:
@@ -1026,7 +1027,6 @@ void EditDialog::switchEditorMode(bool autoSwitchForType)
10261027
case JSON:
10271028
ui->comboMode->setCurrentIndex(JsonEditor);
10281029
break;
1029-
case SVG:
10301030
case XML:
10311031
ui->comboMode->setCurrentIndex(XmlEditor);
10321032
break;

0 commit comments

Comments
 (0)