From 9545c156b5751150dbabe9d741b010ef2e32cf34 Mon Sep 17 00:00:00 2001 From: Itamar Date: Sat, 27 Mar 2021 18:27:08 +0300 Subject: LibGUI: Fix typo in AutocompleteBox::show --- Userland/Libraries/LibGUI/AutocompleteProvider.cpp | 4 ++-- Userland/Libraries/LibGUI/AutocompleteProvider.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Userland/Libraries/LibGUI') 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&& suggestions); bool is_visible() const; - void show(Gfx::IntPoint suggstion_box_location); + void show(Gfx::IntPoint suggestion_box_location); void close(); void next_suggestion(); -- cgit v1.2.3