From 49887d4c8196e2fe1b69aa8e62697aa953d59df2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Thu, 3 Oct 2019 10:17:56 +0200 Subject: [PATCH] filechooserbutton: Only destroy existing native dialogs --- gtk/gtkfilechooserbutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index f60222aa69..dd26efa2cb 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -1235,7 +1235,7 @@ gtk_file_chooser_button_hide (GtkWidget *widget) if (priv->dialog) gtk_widget_hide (priv->dialog); - else + else if (priv->native) gtk_native_dialog_hide (GTK_NATIVE_DIALOG (priv->native)); if (GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->hide) -- 2.30.2