Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
55559030
Commit
55559030
authored
May 29, 2020
by
Alexander Lohnau
💬
Browse files
Fix many results when query starts with =
parent
00fbb83e
Changes
1
Hide whitespace changes
Inline
Side-by-side
runners/baloo/baloosearchrunner.cpp
View file @
55559030
...
...
@@ -87,6 +87,12 @@ RemoteActions SearchRunner::Actions()
RemoteMatches
SearchRunner
::
Match
(
const
QString
&
searchTerm
)
{
// Do not try to show results for queries starting with =
// this should trigger the calculator, but the AdvancedQueryParser::parse method
// in baloo interpreted it as an operator, BUG 345134
if
(
searchTerm
.
startsWith
(
QLatin1Char
(
'='
)))
{
return
RemoteMatches
();
}
setDelayedReply
(
true
);
if
(
m_lastRequest
.
type
()
!=
QDBusMessage
::
InvalidMessage
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment