filechooserbutton: Only destroy existing native dialogs

This commit is contained in:
Timm Bäder 2019-10-03 10:17:56 +02:00
parent d8c940325c
commit 49887d4c81

View 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)