Make file chooser saving work again

I was a little overzealous when going
for the new default handling here. We
can't switch to gtk_widget_activate_default
before we actually handle the default.activate
action.
This commit is contained in:
Matthias Clasen 2019-05-02 01:08:21 +00:00
parent 78d254370c
commit 6e0b13b81f

View File

@ -395,9 +395,16 @@ static void
file_chooser_widget_response_requested (GtkWidget *widget,
GtkFileChooserDialog *dialog)
{
GtkWidget *button;
dialog->priv->response_requested = TRUE;
gtk_widget_activate_default (widget);
button = get_accept_action_widget (GTK_DIALOG (dialog), TRUE);
if (button)
{
gtk_widget_activate (button);
return;
}
dialog->priv->response_requested = FALSE;
}