[network/ktorrent] ktorrent/view: torrentsearchbar: select text when triggering the find action (Ctrl+F)
George Florea Bănuș <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 4b3a6a8ef28c2067cc7f2054d57483dbdca3ee55 by George Florea Bănuș.
Committed on 19/07/2026 at 16:12.
Pushed by georgefb into branch 'master'.
torrentsearchbar: select text when triggering the find action (Ctrl+F)
M +1 -0 ktorrent/view/torrentsearchbar.cpp
https://invent.kde.org/network/ktorrent/-/commit/4b3a6a8ef28c2067cc7f2054d57483dbdca3ee55
diff --git a/ktorrent/view/torrentsearchbar.cpp b/ktorrent/view/torrentsearchbar.cpp
index d9542f92e..c189f24ee 100644
--- a/ktorrent/view/torrentsearchbar.cpp
+++ b/ktorrent/view/torrentsearchbar.cpp
@@ -48,6 +48,7 @@ TorrentSearchBar::~TorrentSearchBar()
void TorrentSearchBar::showBar()
{
show();
+ search_bar->selectAll();
search_bar->setFocus();
Q_EMIT filterBarShown(search_bar->text());
}