]> cloud.milkyroute.net Git - dolphin.git/commitdiff
ContextMenuSettingsPage: Stop forcing focus onto search field
authorFelix Ernst <felixernst@zohomail.eu>
Thu, 15 Aug 2024 18:40:02 +0000 (20:40 +0200)
committerFelix Ernst <felixernst@kde.org>
Fri, 16 Aug 2024 10:13:31 +0000 (10:13 +0000)
Prior to this commit when switching between categories in Dolphin's
settings dialog by keyboard, the focus would suddenly switch away
from the category chooser when going over the "Context Menu"
category. This meant that one couldn't move to the Trash category
in a straightforward way but had to fight the focus change forced
by Dolphin.

This commit removes that forced focus change so the category can
now be changed by keyboard as expected.

src/settings/contextmenu/contextmenusettingspage.cpp

index c401c2d6b6b1a4947bf1316eb7794475acfa9f85..b3585e3fa7faa1072e8fd6b54e85297567b561c2 100644 (file)
@@ -306,7 +306,6 @@ void ContextMenuSettingsPage::loadServices()
     }
 
     m_sortModel->sort(Qt::DisplayRole);
-    m_searchLineEdit->setFocus(Qt::OtherFocusReason);
 }
 
 void ContextMenuSettingsPage::loadVersionControlSystems()