summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-15 06:02:49 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-15 06:02:49 (GMT)
commit219b6d812783a538746222071270279b8d325e1b (patch)
tree5f10ee12fac9aa36f21ceb9f61461fcc6f60ae2b
parenteffb2f673b5d06318cf4b26b71df74fd2ce9dec9 (diff)
Emit finished when import is done
-rw-r--r--kaddressbook/importexportplugins/shared/importexportengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kaddressbook/importexportplugins/shared/importexportengine.cpp b/kaddressbook/importexportplugins/shared/importexportengine.cpp
index 6559018..deda5e1 100644
--- a/kaddressbook/importexportplugins/shared/importexportengine.cpp
+++ b/kaddressbook/importexportplugins/shared/importexportengine.cpp
@@ -121,7 +121,6 @@ void ImportExportEngine::importContacts()
Akonadi::Job *createJob = new Akonadi::ItemCreateJob(groupItem, collection);
connect(createJob, &KJob::result, this, &ImportExportEngine::slotImportJobDone);
}
- Q_EMIT finished();
}
void ImportExportEngine::slotImportJobDone(KJob *)
@@ -138,6 +137,7 @@ void ImportExportEngine::slotImportJobDone(KJob *)
}
}
if (mImportDone >= mNumberElementToImport) {
+ Q_EMIT finished();
deleteLater();
}
}