BrowserSettings: Use index column when casting to a search engine field

Regressed in e8d921820a.

I must've run an old version of the Serenity image when I tested this
after a fixup.
This commit is contained in:
Timothy Flynn 2023-10-23 13:36:48 -04:00
commit 00826b2512
Notes: sideshowbarker 2024-07-16 21:51:02 +09:00

View file

@ -77,7 +77,7 @@ public:
return Gfx::TextAlignment::CenterLeft;
if (role == GUI::ModelRole::Display) {
switch (static_cast<SearchEngineColumn>(index.row())) {
switch (static_cast<SearchEngineColumn>(index.column())) {
case SearchEngineColumn::Name:
return m_search_engines[index.row()].name;
case SearchEngineColumn::QueryURL: