forked from AuroraMiddleware/gtk
Fix for issue #2497, see https://gitlab.gnome.org/GNOME/gtk/issues/2497
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:
parent
d1c6766ae1
commit
2c85be990d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user