summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-07-10 13:21:55 +0200
committerMontel Laurent <[email protected]>2017-07-10 13:21:55 +0200
commit91a8a1ed498d8aadfafb8b2d1c8f48c48809e8f2 (patch)
tree824485321007074cf50e2fba40db2dec5eb36b79
parent392cb6e71daaddeead2939754f623d8378fef863 (diff)
Move after usage
-rw-r--r--src/actionmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index 8aaa2e8..df045a0 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -749,7 +749,6 @@ void ActionManager::slotMergeFinished(bool success, int total)
void ActionManager::slotNewResourceFinished(bool success)
{
Q_ASSERT(sender());
- sender()->deleteLater();
Akonadi::ICalImporter *importer = qobject_cast<Akonadi::ICalImporter *>(sender());
mImportAction->setEnabled(true);
if (success) {
@@ -757,6 +756,7 @@ void ActionManager::slotNewResourceFinished(bool success)
} else {
mCalendarView->showMessage(i18n("Could not add a calendar. Error: %1", importer->errorMessage()), KMessageWidget::Error);
}
+ sender()->deleteLater();
}
void ActionManager::readSettings()