summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-11-13 18:51:02 +0100
committerMontel Laurent <[email protected]>2015-11-13 18:51:02 +0100
commit230406bb74be552daa210d781d27d25b22bd0d0f (patch)
tree1e1bd33300b7fa427c3b7a130b1bbca75a9247ae
parent57cf4f442dd114a895b1577782d478ffb31741a1 (diff)
Fix use correct resource type
-rw-r--r--pimsettingexporter/core/alarm/importalarmjob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimsettingexporter/core/alarm/importalarmjob.cpp b/pimsettingexporter/core/alarm/importalarmjob.cpp
index 71cf626..06199db 100644
--- a/pimsettingexporter/core/alarm/importalarmjob.cpp
+++ b/pimsettingexporter/core/alarm/importalarmjob.cpp
@@ -131,7 +131,7 @@ void ImportAlarmJob::restoreResources()
}
}
const QString archiveNameType = isDirResource ? QStringLiteral("akonadi_kalarm_dir_resource") : QStringLiteral("akonadi_kalarm_resource");
- const QString newResource = mCreateResource->createResource(QStringLiteral("akonadi_kalarm_dir_resource"), filename, settings, true);
+ const QString newResource = mCreateResource->createResource(archiveNameType, filename, settings, true);
infoAboutNewResource(newResource);
listResource << newResource;
qCDebug(PIMSETTINGEXPORTERCORE_LOG) << " newResource" << newResource;