From: scislac Date: Sun, 18 Oct 2009 19:17:16 +0000 (+0000) Subject: Patch by Adib for 429529 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=455ec16c2a85122884474742b2c3d331658c130d;p=inkscape.git Patch by Adib for 429529 --- diff --git a/src/extension/system.cpp b/src/extension/system.cpp index f41217959..6ffa7f57f 100644 --- a/src/extension/system.cpp +++ b/src/extension/system.cpp @@ -206,7 +206,7 @@ save(Extension *key, SPDocument *doc, gchar const *filename, bool setextension, } /* If autodetect fails, save as Inkscape SVG */ if (omod == NULL) { - omod = dynamic_cast(db.get(SP_MODULE_KEY_OUTPUT_SVG_INKSCAPE)); + // omod = dynamic_cast(db.get(SP_MODULE_KEY_OUTPUT_SVG_INKSCAPE)); use exception and let user choose } } else { omod = dynamic_cast(key); diff --git a/src/file.cpp b/src/file.cpp index 4964d30d5..e0ecd5084 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -883,6 +883,10 @@ sp_file_save_document(Gtk::Window &parentWindow, SPDocument *doc) ext = fn.substr( pos ); } success = file_save(parentWindow, doc, fn, Inkscape::Extension::db.get(ext.c_str()), FALSE, TRUE, Inkscape::Extension::FILE_SAVE_METHOD_SAVE_AS); + if (success == false) { + // give the user the chance to change filename or extension + return sp_file_save_dialog(parentWindow, doc, Inkscape::Extension::FILE_SAVE_METHOD_INKSCAPE_SVG); + } } } else { SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("No changes need to be saved."));