summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorJosh Andler <scislac@gmail.com>2009-10-18 19:17:16 +0000
committerscislac <scislac@users.sourceforge.net>2009-10-18 19:17:16 +0000
commit62696234b51b95b6da2b2612162cc4f185481a47 (patch)
treedf64e812996c12d1c54dfab70e4a3bb88ed1cff3 /src/file.cpp
parent* [INTL: pl] Polish update by Polish Inkscape Translation Team (diff)
downloadinkscape-62696234b51b95b6da2b2612162cc4f185481a47.tar.gz
inkscape-62696234b51b95b6da2b2612162cc4f185481a47.zip
Patch by Adib for 429529
(bzr r8792)
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp4
1 files changed, 4 insertions, 0 deletions
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."));