Fix missing filename after closing save-as dialog

Currently, if you open the save as dialog, press ESC to close the dialog and then re-open it, the filename is cleared to `"."`.

This patch sets `SaveAsDlg::fname` so RT always gets the original filename back even if the dialog is dismissed.
This commit is contained in:
PkmX 2017-10-04 19:36:25 +08:00 committed by GitHub
parent c6c9ad5eef
commit e4f24fff9c

View File

@ -299,7 +299,7 @@ void SaveAsDialog::formatChanged (Glib::ustring f)
void SaveAsDialog::setInitialFileName (Glib::ustring fname)
{
this->fname = fname;
fchooser->set_current_name(fname);
}