Fixed file extension not added when saving directly
see issue 869
This commit is contained in:
parent
1a8c436c4b
commit
244caeff9a
@ -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 () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user