From e8fad5614e36c0fd7cc18854a61d1d172e35ee8a Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Sat, 7 Aug 2021 23:07:08 +0200 Subject: [PATCH] DisplaySettings: Pass the parent window to the FilePicker Prior this change, closing the Display Settings application didn't close the File Picker. --- .../Applications/DisplaySettings/BackgroundSettingsWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp b/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp index 676f5a3c59..b2a5028aaa 100644 --- a/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp +++ b/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp @@ -61,7 +61,7 @@ void BackgroundSettingsWidget::create_frame() auto& button = *find_descendant_of_type_named("wallpaper_open_button"); button.on_click = [this](auto) { - auto path = GUI::FilePicker::get_open_filepath(nullptr, "Select wallpaper from file system", "/res/wallpapers"); + auto path = GUI::FilePicker::get_open_filepath(window(), "Select wallpaper from file system", "/res/wallpapers"); if (!path.has_value()) return; m_wallpaper_view->selection().clear();