diff options
| author | Josh Andler <scislac@gmail.com> | 2009-10-18 19:17:16 +0000 |
|---|---|---|
| committer | scislac <scislac@users.sourceforge.net> | 2009-10-18 19:17:16 +0000 |
| commit | 62696234b51b95b6da2b2612162cc4f185481a47 (patch) | |
| tree | df64e812996c12d1c54dfab70e4a3bb88ed1cff3 | |
| parent | * [INTL: pl] Polish update by Polish Inkscape Translation Team (diff) | |
| download | inkscape-62696234b51b95b6da2b2612162cc4f185481a47.tar.gz inkscape-62696234b51b95b6da2b2612162cc4f185481a47.zip | |
Patch by Adib for 429529
(bzr r8792)
| -rw-r--r-- | src/extension/system.cpp | 2 | ||||
| -rw-r--r-- | src/file.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
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<Output *>(db.get(SP_MODULE_KEY_OUTPUT_SVG_INKSCAPE)); + // omod = dynamic_cast<Output *>(db.get(SP_MODULE_KEY_OUTPUT_SVG_INKSCAPE)); use exception and let user choose } } else { omod = dynamic_cast<Output *>(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.")); |
