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
cf4436af
Commit
cf4436af
authored
Mar 11, 2022
by
Laurent Montel
😁
Browse files
It was a very old migrate code
parent
500ebea5
Pipeline
#148102
passed with stage
in 2 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
agent/agent.cpp
View file @
cf4436af
...
...
@@ -46,15 +46,7 @@ AkonadiIndexingAgent::AkonadiIndexingAgent(const QString &id)
Akonadi
::
AttributeFactory
::
registerAttribute
<
Akonadi
::
IndexPolicyAttribute
>
();
KConfigGroup
cfg
=
config
()
->
group
(
"General"
);
int
agentIndexingVersion
=
cfg
.
readEntry
(
"agentIndexingVersion"
,
0
);
if
(
agentIndexingVersion
==
0
)
{
// Check for value in baloorc, which we used historically, and migrate
// to the native config file
KConfig
baloorc
(
QStringLiteral
(
"baloorc"
));
KConfigGroup
baloorcGroup
=
baloorc
.
group
(
"Akonadi"
);
agentIndexingVersion
=
baloorcGroup
.
readEntry
(
"agentIndexingVersion"
,
0
);
cfg
.
writeEntry
(
"agentIndexingVersion"
,
agentIndexingVersion
);
}
const
int
agentIndexingVersion
=
cfg
.
readEntry
(
"agentIndexingVersion"
,
0
);
if
(
agentIndexingVersion
<
INDEXING_AGENT_VERSION
)
{
m_index
.
removeDatabase
();
...
...
Write
Preview
Supports
Markdown
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