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:
parent
c6c9ad5eef
commit
e4f24fff9c
@ -299,7 +299,7 @@ void SaveAsDialog::formatChanged (Glib::ustring f)
|
||||
|
||||
void SaveAsDialog::setInitialFileName (Glib::ustring fname)
|
||||
{
|
||||
|
||||
this->fname = fname;
|
||||
fchooser->set_current_name(fname);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user