aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/searchbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/searchbar.cpp')
-rw-r--r--src/widgets/searchbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/searchbar.cpp b/src/widgets/searchbar.cpp
index 1347b33..d157912 100644
--- a/src/widgets/searchbar.cpp
+++ b/src/widgets/searchbar.cpp
@@ -55,7 +55,7 @@ void SearchBar::mouseReleaseEvent(QMouseEvent *event)
// Select all text if the bar was just focused and
// user did not select anything.
- if (this->selectall_flag && QLineEdit::selectionLength() < 1)
+ if (this->selectall_flag && selectionStart() == -1)
{
QLineEdit::selectAll();
}