From 00826b25122fbe90159bd34e8edc2320795a456a Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 23 Oct 2023 13:36:48 -0400 Subject: [PATCH] BrowserSettings: Use index column when casting to a search engine field Regressed in e8d921820a6d08f6bf324db528bc8da0c7e86151. I must've run an old version of the Serenity image when I tested this after a fixup. --- Userland/Applications/BrowserSettings/BrowserSettingsWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/BrowserSettings/BrowserSettingsWidget.cpp b/Userland/Applications/BrowserSettings/BrowserSettingsWidget.cpp index 4af770026d..617355d8df 100644 --- a/Userland/Applications/BrowserSettings/BrowserSettingsWidget.cpp +++ b/Userland/Applications/BrowserSettings/BrowserSettingsWidget.cpp @@ -77,7 +77,7 @@ public: return Gfx::TextAlignment::CenterLeft; if (role == GUI::ModelRole::Display) { - switch (static_cast(index.row())) { + switch (static_cast(index.column())) { case SearchEngineColumn::Name: return m_search_engines[index.row()].name; case SearchEngineColumn::QueryURL: