Fixed file extension not added when saving directly

see issue 869
This commit is contained in:
Oliver Duis 2011-07-27 18:59:02 +02:00
parent 1a8c436c4b
commit 244caeff9a

View File

@ -18,6 +18,7 @@
*/
#include "saveasdlg.h"
#include <multilangmgr.h>
#include <guiutils.h>
extern Options options;
SaveAsDialog::SaveAsDialog (Glib::ustring initialDir) {
@ -117,7 +118,7 @@ bool SaveAsDialog::getToTailOfQueue () {
Glib::ustring SaveAsDialog::getFileName () {
return fname;
return removeExtension(fname) + Glib::ustring(".") + formatOpts->getFormat().format;
}
Glib::ustring SaveAsDialog::getDirectory () {