summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2023-05-09 18:33:47 +0200
committerSam Atkins <atkinssj@gmail.com>2023-05-16 12:57:34 +0100
commit3e12d84f0f61ab31c476d8f655ae0655b39a9a84 (patch)
treef62f6bed31e98ff4511548b0e9a97afb1f2ef848 /Userland/Libraries/LibGUI
parente02cbd9daae621dc2a8d3ae784ba299719d6649b (diff)
downloadserenity-3e12d84f0f61ab31c476d8f655ae0655b39a9a84.zip
LibGUI: Actually set the first allowed file extension list in FilePicker
Previously, the File Picker didn't activate the pre-selected filter.
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/FilePicker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/FilePicker.cpp b/Userland/Libraries/LibGUI/FilePicker.cpp
index 3a099939e6..49b2840db3 100644
--- a/Userland/Libraries/LibGUI/FilePicker.cpp
+++ b/Userland/Libraries/LibGUI/FilePicker.cpp
@@ -157,6 +157,7 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, StringView filename, St
m_model->set_allowed_file_extensions((*m_allowed_file_types)[index.row()].extensions);
};
file_types_filters_combo->set_selected_index(0);
+ m_model->set_allowed_file_extensions((*m_allowed_file_types)[0].extensions);
} else {
auto* file_types_filter_label = widget->find_descendant_of_type_named<GUI::Label>("allowed_file_types_label");
auto& spacer = file_types_filter_label->parent_widget()->add<GUI::Widget>();