diff options
author | Itamar <itamar8910@gmail.com> | 2021-03-27 18:27:08 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-06 21:51:58 +0200 |
commit | 9545c156b5751150dbabe9d741b010ef2e32cf34 (patch) | |
tree | d5f8c33130250d89caee96797d773f671db174b7 /Userland | |
parent | 68f420ed42e7b126454abc0c95e032b791372ec5 (diff) | |
download | serenity-9545c156b5751150dbabe9d741b010ef2e32cf34.zip |
LibGUI: Fix typo in AutocompleteBox::show
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGUI/AutocompleteProvider.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/AutocompleteProvider.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGUI/AutocompleteProvider.cpp b/Userland/Libraries/LibGUI/AutocompleteProvider.cpp index 369c2a01be..48cde66e64 100644 --- a/Userland/Libraries/LibGUI/AutocompleteProvider.cpp +++ b/Userland/Libraries/LibGUI/AutocompleteProvider.cpp @@ -135,12 +135,12 @@ bool AutocompleteBox::is_visible() const return m_popup_window->is_visible(); } -void AutocompleteBox::show(Gfx::IntPoint suggstion_box_location) +void AutocompleteBox::show(Gfx::IntPoint suggestion_box_location) { if (!m_suggestion_view->model() || m_suggestion_view->model()->row_count() == 0) return; - m_popup_window->move_to(suggstion_box_location); + m_popup_window->move_to(suggestion_box_location); if (!is_visible()) m_suggestion_view->move_cursor(GUI::AbstractView::CursorMovement::Home, GUI::AbstractTableView::SelectionUpdate::Set); m_popup_window->show(); diff --git a/Userland/Libraries/LibGUI/AutocompleteProvider.h b/Userland/Libraries/LibGUI/AutocompleteProvider.h index 8613be538b..ca3290bd58 100644 --- a/Userland/Libraries/LibGUI/AutocompleteProvider.h +++ b/Userland/Libraries/LibGUI/AutocompleteProvider.h @@ -100,7 +100,7 @@ public: void update_suggestions(Vector<AutocompleteProvider::Entry>&& suggestions); bool is_visible() const; - void show(Gfx::IntPoint suggstion_box_location); + void show(Gfx::IntPoint suggestion_box_location); void close(); void next_suggestion(); |