FileDialog: initial-file didnʼt set initial-folder

We always set :initial-folder to NULL and then notified about that,
instead of setting it to the folder of the :initial-file as we say.
This commit is contained in:
Daniel Boles
2023-06-22 22:33:14 +01:00
parent e28a32a7c7
commit 220d130c0f

View File

@@ -703,7 +703,7 @@ gtk_file_dialog_set_initial_file (GtkFileDialog *self,
if (folder == NULL)
goto invalid_file;
if (g_set_object (&self->initial_folder, NULL))
if (g_set_object (&self->initial_folder, folder))
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_INITIAL_FOLDER]);
info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME, 0, NULL, NULL);