[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [pim-sieve-editor] src/importwizard: Continue to implement importwizard
From: Montel Laurent <null () kde ! org>
Date: 2017-01-26 12:33:18
Message-ID: E1cWjEs-0006wC-6Y () code ! kde ! org
[Download RAW message or body]
Git commit 872fd2499b49b79964104c1de3d679c47fbc98a4 by Montel Laurent.
Committed on 26/01/2017 at 12:33.
Pushed by mlaurent into branch 'master'.
Continue to implement importwizard
M +9 -3 src/importwizard/importimapsettingprogresspage.cpp
https://commits.kde.org/pim-sieve-editor/872fd2499b49b79964104c1de3d679c47f=
bc98a4
diff --git a/src/importwizard/importimapsettingprogresspage.cpp b/src/impor=
twizard/importimapsettingprogresspage.cpp
index 64819fc..555f780 100644
--- a/src/importwizard/importimapsettingprogresspage.cpp
+++ b/src/importwizard/importimapsettingprogresspage.cpp
@@ -18,6 +18,7 @@
*/
=
#include "importimapsettingprogresspage.h"
+#include "sieveeditor_debug.h"
#include "checks/abstractimapsettingscheckjob.h"
#include "helper_p.h"
#include <QVBoxLayout>
@@ -56,8 +57,14 @@ void ImportImapSettingProgressPage::setListCheckJob(cons=
t QMap<QString, Abstract
=
void ImportImapSettingProgressPage::start()
{
- //Move to abstract class
if (mSelectedPrograms.isEmpty()) {
+ //Send info about no selected program
+ Q_EMIT finished();
+ return;
+ }
+ if (mListCheckJob.isEmpty()) {
+ qCWarning(SIEVEEDITOR_LOG) << "It's a bug, list of check job can n=
ot be empty";
+ Q_EMIT finished();
return;
}
for (const QString &prg : qAsConst(mSelectedPrograms)) {
@@ -71,6 +78,5 @@ void ImportImapSettingProgressPage::start()
void ImportImapSettingProgressPage::slotImportSettingsDone(const QString &=
name, const SieveEditorUtil::SieveServerConfig &settings)
{
addProgressInfo(i18n("Import settings %1", name));
- //We can't do it. We need to append SieveEditorUtil::writeServerSieveC=
onfig(QVector<SieveEditorUtil::SieveServerConfig>() << settings);
- //TODO
+ SieveEditorUtil::addServerSieveConfig(settings);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic