Commit e961ea69 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix import notes

parent 7f2bd934
......@@ -80,6 +80,11 @@ void ImportNotesJob::start()
QTimer::singleShot(0, this, &ImportNotesJob::slotNextStep);
}
bool ImportNotesJob::isAConfigFile(const QString &name) const
{
return name.endsWith(QLatin1String("rc")) && (name.contains(QLatin1String("akonadi_akonotes_resource_")));
}
void ImportNotesJob::restoreConfig()
{
increaseProgressDialog();
......
......@@ -36,6 +36,7 @@ public:
private:
void slotNextStep() override;
private:
Q_REQUIRED_RESULT bool isAConfigFile(const QString &name) const override;
void importKNoteGlobalSettings(const KArchiveFile *kmailsnippet, const QString &kmail2rc, const QString &filename, const QString &prefix);
void restoreConfig();
void restoreData();
......
......@@ -34,7 +34,7 @@ struct resourceFiles {
QString akonadiAgentConfigFile;
void debug() const
{
qCDebug(PIMDATAEXPORTERCORE_LOG) << " akonadiconfigfile :" << akonadiConfigFile << " akonadiResources:" << akonadiResources << " akonadiAgentConfigFile:" << akonadiAgentConfigFile;
qDebug() << " akonadiconfigfile :" << akonadiConfigFile << " akonadiResources:" << akonadiResources << " akonadiAgentConfigFile:" << akonadiAgentConfigFile;
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment