mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-14 15:59:18 -05:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user