filechooserbutton: Only destroy existing native dialogs
authorTimm Bäder <mail@baedert.org>
Thu, 3 Oct 2019 08:17:56 +0000 (10:17 +0200)
committerTimm Bäder <mail@baedert.org>
Wed, 9 Oct 2019 14:57:22 +0000 (16:57 +0200)
gtk/gtkfilechooserbutton.c

index f60222aa69d468e3ec003b3b68987515a237a0e0..dd26efa2cbea5a6655447531b011159da4d2123a 100644 (file)
@@ -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)