summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2022-06-14 15:49:34 +0200
committerLinus Groh <mail@linusgroh.de>2022-06-14 14:57:09 +0100
commit621349ed143c7bde6570958c49f0c962154cc2c1 (patch)
tree6e347350a29cc10b0645d34df65cbfeccc8034ea /Userland/Applications
parentc9b363de5662875beb73619ed41dabada8116411 (diff)
downloadserenity-621349ed143c7bde6570958c49f0c962154cc2c1.zip
DisplaySettings: Use absolute path for loading mouse settings icon
This patch fixes DisplaySettings crashing when launching it from a non root working directory.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/DisplaySettings/ThemesSettingsWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/DisplaySettings/ThemesSettingsWidget.cpp b/Userland/Applications/DisplaySettings/ThemesSettingsWidget.cpp
index 917035f08d..2b7518e549 100644
--- a/Userland/Applications/DisplaySettings/ThemesSettingsWidget.cpp
+++ b/Userland/Applications/DisplaySettings/ThemesSettingsWidget.cpp
@@ -48,7 +48,7 @@ ThemesSettingsWidget::ThemesSettingsWidget(bool& background_settings_changed)
};
m_themes_combo->set_selected_index(current_theme_index, GUI::AllowCallback::No);
- auto mouse_settings_icon = Gfx::Bitmap::try_load_from_file("res/icons/16x16/app-mouse.png").release_value_but_fixme_should_propagate_errors();
+ auto mouse_settings_icon = Gfx::Bitmap::try_load_from_file("/res/icons/16x16/app-mouse.png").release_value_but_fixme_should_propagate_errors();
m_cursor_themes_button = *find_descendant_of_type_named<GUI::Button>("cursor_themes_button");
m_cursor_themes_button->set_icon(mouse_settings_icon);
m_cursor_themes_button->on_click = [&](auto) {