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

Fix assert when removing the selected folder from the local subscription

ASSERT: "s->model() == etmIndex.model()" in file messagelib/messagelist/src/pane.cpp, line 536
parent 98765e8e
......@@ -568,8 +568,10 @@ void KMMainWidget::folderSelected(const Akonadi::Collection &col)
void KMMainWidget::slotShowSelectedFolderInPane()
{
if (mCurrentCollection.isValid()) {
QModelIndex idx = Akonadi::EntityTreeModel::modelIndexForCollection(KMKernel::self()->entityTreeModel(), mCurrentCollection);
mMessagePane->setCurrentFolder(mCurrentCollection, idx, false, mPreSelectionMode);
const QModelIndex idx = Akonadi::EntityTreeModel::modelIndexForCollection(KMKernel::self()->entityTreeModel(), mCurrentCollection);
if (idx.isValid()) {
mMessagePane->setCurrentFolder(mCurrentCollection, idx, false, mPreSelectionMode);
}
}
updateMessageActions();
updateFolderMenu();
......
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