summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2021-03-27 18:27:08 +0300
committerAndreas Kling <kling@serenityos.org>2021-04-06 21:51:58 +0200
commit9545c156b5751150dbabe9d741b010ef2e32cf34 (patch)
treed5f8c33130250d89caee96797d773f671db174b7 /Userland/Libraries/LibGUI
parent68f420ed42e7b126454abc0c95e032b791372ec5 (diff)
downloadserenity-9545c156b5751150dbabe9d741b010ef2e32cf34.zip
LibGUI: Fix typo in AutocompleteBox::show
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/AutocompleteProvider.cpp4
-rw-r--r--Userland/Libraries/LibGUI/AutocompleteProvider.h2
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();