Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi Search
Commits
2fce8f7a
Commit
2fce8f7a
authored
Sep 30, 2020
by
Laurent Montel
😁
Browse files
Minor
parent
8237c1fb
Pipeline
#36057
passed with stage
in 35 minutes and 20 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/emailquery.cpp
View file @
2fce8f7a
...
...
@@ -264,8 +264,8 @@ ResultIterator EmailQuery::exec()
if
(
!
d
->
collections
.
isEmpty
())
{
Xapian
::
Query
query
;
for
(
Akonadi
::
Collection
::
Id
id
:
qAsConst
(
d
->
collections
))
{
QString
c
=
QString
::
number
(
id
);
Xapian
::
Query
q
=
Xapian
::
Query
(
'C'
+
c
.
toStdString
());
const
QString
c
=
QString
::
number
(
id
);
const
Xapian
::
Query
q
=
Xapian
::
Query
(
'C'
+
c
.
toStdString
());
query
=
Xapian
::
Query
(
Xapian
::
Query
::
OP_OR
,
query
,
q
);
}
...
...
lib/indexeditems.cpp
View file @
2fce8f7a
...
...
@@ -142,7 +142,7 @@ void IndexedItemsPrivate::findIndexedInDatabase(QSet<Akonadi::Item::Id> &indexed
return
;
}
const
std
::
string
term
=
QStringLiteral
(
"C%1"
).
arg
(
collectionId
).
toStdString
();
Xapian
::
Query
query
(
term
);
const
Xapian
::
Query
query
(
term
);
Xapian
::
Enquire
enquire
(
db
);
enquire
.
set_query
(
query
);
...
...
lib/query.cpp
View file @
2fce8f7a
...
...
@@ -37,7 +37,7 @@ Query *Query::fromJSON(const QByteArray &json)
return
nullptr
;
}
QVariantMap
result
=
doc
.
toVariant
().
toMap
();
const
QVariantMap
result
=
doc
.
toVariant
().
toMap
();
const
QString
type
=
result
[
QStringLiteral
(
"type"
)].
toString
().
toLower
();
if
(
type
!=
QLatin1String
(
"contact"
))
{
qCWarning
(
AKONADI_SEARCH_PIM_LOG
)
<<
"Can only handle contact queries"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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