summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/ComboBox.h
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2021-11-29 14:43:02 -0500
committerAndreas Kling <kling@serenityos.org>2021-11-30 10:51:51 +0100
commit298a6b99378e6cdbb80c5623582e510063da3d3f (patch)
treebbaa7cd1ca8893537ff6fc469557f68518b13122 /Userland/Libraries/LibGUI/ComboBox.h
parentca062d83dbe0342aacc7d30924a63369819438c9 (diff)
downloadserenity-298a6b99378e6cdbb80c5623582e510063da3d3f.zip
LibGUI+FontEditor: Allow ComboBox on_change callback to be toggled
When calling set_selected_index() on ComboBox, allow its on_change callback to be disabled. Fixes FontEditor window state erroneously switching to modified when initializing between different slopes and weights.
Diffstat (limited to 'Userland/Libraries/LibGUI/ComboBox.h')
-rw-r--r--Userland/Libraries/LibGUI/ComboBox.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/ComboBox.h b/Userland/Libraries/LibGUI/ComboBox.h
index a772718838..4db98b30e9 100644
--- a/Userland/Libraries/LibGUI/ComboBox.h
+++ b/Userland/Libraries/LibGUI/ComboBox.h
@@ -32,7 +32,7 @@ public:
void set_model(NonnullRefPtr<Model>);
size_t selected_index() const;
- void set_selected_index(size_t index);
+ void set_selected_index(size_t index, AllowCallback = AllowCallback::Yes);
bool only_allow_values_from_model() const { return m_only_allow_values_from_model; }
void set_only_allow_values_from_model(bool);