From 6e0b13b81f634808d872cab3e092ee3bd00e401c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 2 May 2019 01:08:21 +0000 Subject: [PATCH] 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. --- gtk/gtkfilechooserdialog.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c index de42a77c70..5b92797905 100644 --- a/gtk/gtkfilechooserdialog.c +++ b/gtk/gtkfilechooserdialog.c @@ -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; }