From 62696234b51b95b6da2b2612162cc4f185481a47 Mon Sep 17 00:00:00 2001 From: Josh Andler Date: Sun, 18 Oct 2009 19:17:16 +0000 Subject: Patch by Adib for 429529 (bzr r8792) --- src/file.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/file.cpp') 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.")); -- cgit v1.2.3