Commit 91a8a1ed authored by Laurent Montel's avatar Laurent Montel 😁

Move after usage

parent 392cb6e7
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment