summaryrefslogtreecommitdiff
path: root/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2021-08-07 23:07:08 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-14 15:20:21 +0200
commite8fad5614e36c0fd7cc18854a61d1d172e35ee8a (patch)
tree36636922d44f926014fe5486f26d08dd8124a683 /Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp
parente2ad59ce06ee856b6bbff443b4e3a90f93093066 (diff)
downloadserenity-e8fad5614e36c0fd7cc18854a61d1d172e35ee8a.zip
DisplaySettings: Pass the parent window to the FilePicker
Prior this change, closing the Display Settings application didn't close the File Picker.
Diffstat (limited to 'Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp')
-rw-r--r--Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp2
1 files changed, 1 insertions, 1 deletions
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<GUI::Button>("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();