Commit f0177161 authored by Allen Winter's avatar Allen Winter
Browse files

incidencedialog.cpp - restore last used collection

BUG: 411191

Differential Revision: https://phabricator.kde.org/D27427
parent 127aea90
......@@ -181,6 +181,12 @@ IncidenceDialogPrivate::IncidenceDialogPrivate(Akonadi::IncidenceChanger *change
mIeResource = new IncidenceResource(mIeAttendee, mIeDateTime, mUi);
mEditor->combine(mIeResource);
const qint64 colId = IncidenceEditorNG::IncidenceEditorSettings::self()->lastSelectedFolder();
const Akonadi::Collection col(colId);
if (col.isValid()) {
mCalSelector->setDefaultCollection(col);
}
q->connect(mEditor, SIGNAL(showMessage(QString,KMessageWidget::MessageType)),
SLOT(showMessage(QString,KMessageWidget::MessageType)));
q->connect(mEditor, SIGNAL(dirtyStatusChanged(bool)),
......
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