summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-11-08 14:51:02 +0100
committerMontel Laurent <[email protected]>2015-11-08 14:51:02 +0100
commitcee76ecfed1001d33ae59020a3baa375d42bec2f (patch)
tree48463038c3df33ea672a924fae93e356890f1b5d
parentcb64c6992b0c09e78f812a520290ec307095f350 (diff)
Exit application
-rw-r--r--pimsettingexporter/console/pimsettingexporterconsole.cpp8
-rw-r--r--pimsettingexporter/console/pimsettingexporterconsole.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/pimsettingexporter/console/pimsettingexporterconsole.cpp b/pimsettingexporter/console/pimsettingexporterconsole.cpp
index 9f5a9cb..ce4a4c2 100644
--- a/pimsettingexporter/console/pimsettingexporterconsole.cpp
+++ b/pimsettingexporter/console/pimsettingexporterconsole.cpp
@@ -59,6 +59,13 @@ void PimSettingExporterConsole::initializeLogInFile()
connect(mPimSettingsBackupRestore, &PimSettingsBackupRestore::jobFinished, this, &PimSettingExporterConsole::slotJobFinished);
connect(mPimSettingsBackupRestore, &PimSettingsBackupRestore::backupDone, this, &PimSettingExporterConsole::slotBackupDone);
connect(mPimSettingsBackupRestore, &PimSettingsBackupRestore::jobFailed, this, &PimSettingExporterConsole::slotJobFailed);
+ connect(mPimSettingsBackupRestore, &PimSettingsBackupRestore::restoreDone, this, &PimSettingExporterConsole::slotRestoreDone);
+}
+
+void PimSettingExporterConsole::slotRestoreDone()
+{
+ qCDebug(PIMSETTINGEXPORTERCONSOLE_LOG) << "Restore Done";
+ QTimer::singleShot(0, this, &PimSettingExporterConsole::finished);
}
void PimSettingExporterConsole::slotJobFailed()
@@ -70,6 +77,7 @@ void PimSettingExporterConsole::slotJobFailed()
void PimSettingExporterConsole::slotBackupDone()
{
qCDebug(PIMSETTINGEXPORTERCONSOLE_LOG) << "Backup Done";
+ QTimer::singleShot(0, this, &PimSettingExporterConsole::finished);
}
void PimSettingExporterConsole::slotJobFinished()
diff --git a/pimsettingexporter/console/pimsettingexporterconsole.h b/pimsettingexporter/console/pimsettingexporterconsole.h
index b3ee40a..3b79f8e 100644
--- a/pimsettingexporter/console/pimsettingexporterconsole.h
+++ b/pimsettingexporter/console/pimsettingexporterconsole.h
@@ -57,6 +57,7 @@ private Q_SLOTS:
void slotJobFailed();
void slotBackupDone();
void slotJobFinished();
+ void slotRestoreDone();
private:
void initializeLogInFile();
QString mTemplateFileName;