diff options
-rw-r--r-- | gtk/gtkfilechoosernativewin32.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkfilechoosernativewin32.c b/gtk/gtkfilechoosernativewin32.c index 4d12a847c1..bec7ca4be3 100644 --- a/gtk/gtkfilechoosernativewin32.c +++ b/gtk/gtkfilechoosernativewin32.c @@ -982,8 +982,11 @@ gtk_file_chooser_native_win32_show (GtkFileChooserNative *self) return FALSE; } - data->grab_widget = gtk_invisible_new (); - gtk_grab_add (GTK_WIDGET (data->grab_widget)); + if (gtk_native_dialog_get_modal (GTK_NATIVE_DIALOG (self))) + { + data->grab_widget = gtk_invisible_new (); + gtk_grab_add (GTK_WIDGET (data->grab_widget)); + } return TRUE; } |