summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechoosernativeportal.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkfilechoosernativeportal.c')
-rw-r--r--gtk/gtkfilechoosernativeportal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkfilechoosernativeportal.c b/gtk/gtkfilechoosernativeportal.c
index 530e63cff0..8c5903ce30 100644
--- a/gtk/gtkfilechoosernativeportal.c
+++ b/gtk/gtkfilechoosernativeportal.c
@@ -468,7 +468,7 @@ gtk_file_chooser_native_portal_show (GtkFileChooserNative *self,
GtkFileChooserAction action;
const char *method_name;
- if (!gdk_should_use_portal ())
+ if (!self->use_portal && !gdk_should_use_portal ())
return FALSE;
connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);