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

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
parent 3fe9f8e48d
commit 00826b2512

View file

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