The 'selection-changed' signal is emitted unconditionally, even in the case
when there is no selection to be cleared. As a result, the subscriber receives
the initial signal and if he calls gtk_file_chooser_get_uri(), no value is
currently selected.
This commit is contained in:
Eivind Naess 2020-03-08 18:54:10 -07:00
parent d1c6766ae1
commit 2c85be990d

View File

@ -610,10 +610,9 @@ unselect_current_file (GtkFileChooserButton *button)
{
g_object_unref (priv->selection_while_inactive);
priv->selection_while_inactive = NULL;
priv->is_changing_selection = TRUE;
}
priv->is_changing_selection = TRUE;
update_label_and_image (button);
update_combo_box (button);
}