From e4f24fff9c0bb48c260d23c4fa435a7f1970d817 Mon Sep 17 00:00:00 2001 From: PkmX Date: Wed, 4 Oct 2017 19:36:25 +0800 Subject: [PATCH] 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. --- rtgui/saveasdlg.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtgui/saveasdlg.cc b/rtgui/saveasdlg.cc index 865373b60..1818d748a 100644 --- a/rtgui/saveasdlg.cc +++ b/rtgui/saveasdlg.cc @@ -299,7 +299,7 @@ void SaveAsDialog::formatChanged (Glib::ustring f) void SaveAsDialog::setInitialFileName (Glib::ustring fname) { - + this->fname = fname; fchooser->set_current_name(fname); }