1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:47:47 +00:00

LibGUI: Fix typo in AutocompleteBox::show

This commit is contained in:
Itamar 2021-03-27 18:27:08 +03:00 committed by Andreas Kling
parent 68f420ed42
commit 9545c156b5
2 changed files with 3 additions and 3 deletions

View file

@ -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();