Commit c33218c6 authored by David Faure's avatar David Faure
Browse files

Fix crash on 'New Todo' in kontact.

'changer' can actually be null here.

Just skip the optimization (i.e. let the combo create its own
EntityTreeModel) in that case.

BUG: 420192
parent 862ecc9c
......@@ -129,7 +129,7 @@ public:
IncidenceDialogPrivate::IncidenceDialogPrivate(Akonadi::IncidenceChanger *changer, IncidenceDialog *qq)
: q_ptr(qq)
, mUi(new Ui::EventOrTodoDesktop)
, mCalSelector(new Akonadi::CollectionComboBox(changer->entityTreeModel()))
, mCalSelector(new Akonadi::CollectionComboBox(changer ? changer->entityTreeModel() : nullptr))
, mCloseOnSave(false)
, mItemManager(new EditorItemManager(this, changer))
, mEditor(new CombinedIncidenceEditor(qq))
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