[gtk/wip/baedert/for-master: 68/74] filechooserbutton: Only destroy existing native dialogs



commit 549b10c132546c6e7d45daa9dd5471321f99b533
Author: Timm Bäder <mail baedert org>
Date:   Thu Oct 3 10:17:56 2019 +0200

    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 6ca82d16d5..de3349d490 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]