Code

Add the file extension even when the prior name has no extension already
authorjoncruz <joncruz@users.sourceforge.net>
Sat, 3 Mar 2007 06:09:04 +0000 (06:09 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Sat, 3 Mar 2007 06:09:04 +0000 (06:09 +0000)
src/ui/dialog/filedialog.cpp

index 81404a2dea7a204ed8748ae20c880ec8c9c62ce3..26f20b9e630af306e5b5d2dc49a1fcb78e320147 100644 (file)
@@ -1243,6 +1243,9 @@ void FileSaveDialogImpl::fileTypeChangedCallback()
             } catch ( Glib::ConvertError& e ) {
                 // ignore
             }
+        } else {
+            myFilename = myFilename + newOut->get_extension();
+            change_path(myFilename);
         }
     }
 }