summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2009-08-07 02:47:16 +0000
committercilix42 <cilix42@users.sourceforge.net>2009-08-07 02:47:16 +0000
commit84cd4afbcea5a9fa796b1fec6e2238f77970bd1f (patch)
tree8b72f6eccd2540e8154c2cc438b4c2dfaf17049e /src
parentupdate (diff)
downloadinkscape-84cd4afbcea5a9fa796b1fec6e2238f77970bd1f.tar.gz
inkscape-84cd4afbcea5a9fa796b1fec6e2238f77970bd1f.zip
Fix buglet: In the Save dialog the file extension should be automatically updated when it is changed from the dropdown box.
(bzr r8431)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/filedialogimpl-gtkmm.cpp3
1 files changed, 2 insertions, 1 deletions
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<Inkscape::Extension::Output*>(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);
}
}