From: cilix42 Date: Fri, 7 Aug 2009 02:47:16 +0000 (+0000) Subject: Fix buglet: In the Save dialog the file extension should be automatically updated... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c3c5b5b0a1b280bcdbef8d38fde7f4e677fd8b2a;p=inkscape.git Fix buglet: In the Save dialog the file extension should be automatically updated when it is changed from the dropdown box. --- diff --git a/src/ui/dialog/filedialogimpl-gtkmm.cpp b/src/ui/dialog/filedialogimpl-gtkmm.cpp index 70f2f2ae5..749a67b28 100644 --- a/src/ui/dialog/filedialogimpl-gtkmm.cpp +++ b/src/ui/dialog/filedialogimpl-gtkmm.cpp @@ -1234,8 +1234,9 @@ void FileSaveDialogImplGtk::updateNameAndExtension() Inkscape::Extension::Output* newOut = extension ? dynamic_cast(extension) : 0; if ( fileTypeCheckbox.get_active() && newOut ) { - // Append the file extension if it's not already present + // Append the file extension if it's not already present and display it in the file name entry field appendExtension(myFilename, newOut); + change_path(myFilename); } }