mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
LibGUI: Convert various little things to GModelSelection
All the little things that were using the per-model seletion are now moving over to GModelSelection.
This commit is contained in:
@@ -12,7 +12,7 @@ GComboBox::GComboBox(GWidget* parent)
|
||||
m_editor = new GTextEditor(GTextEditor::Type::SingleLine, this);
|
||||
m_editor->on_change = [this] {
|
||||
if (on_change)
|
||||
on_change(m_editor->text(), model()->selected_index());
|
||||
on_change(m_editor->text(), m_list_view->selection().first());
|
||||
};
|
||||
m_editor->on_return_pressed = [this] {
|
||||
if (on_return_pressed)
|
||||
|
||||
Reference in New Issue
Block a user