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:
parent
3fe9f8e48d
commit
00826b2512
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue