diff options
Diffstat (limited to 'src/extension/system.cpp')
| -rw-r--r-- | src/extension/system.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/extension/system.cpp b/src/extension/system.cpp index 2a74c6b0c..daad169aa 100644 --- a/src/extension/system.cpp +++ b/src/extension/system.cpp @@ -99,12 +99,14 @@ SPDocument *open(Extension *key, gchar const *filename) Inkscape::Preferences *prefs = Inkscape::Preferences::get(); bool ask = prefs->getBool("/dialogs/import/ask"); Glib::ustring id = Glib::ustring(imod->get_id(), 22); - if (id.compare("org.inkscape.input.svg") == 0 && - ((strcmp(prefs->getString("/options/openmethod/value").c_str(), "done") != 0 && - strcmp(prefs->getString("/options/openmethod/value").c_str(), "import") != 0) || - !ask)) { - show = false; - imod->set_gui(false); + if (id.compare("org.inkscape.input.svg") == 0) { + if (ask && prefs->getBool("/options/onimport", false)) { + show = true; + imod->set_gui(true); + } else { + show = false; + imod->set_gui(false); + } } else if(strlen(imod->get_id()) > 27) { id = Glib::ustring(imod->get_id(), 28); if (!ask && id.compare( "org.inkscape.input.gdkpixbuf") == 0) { |
