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

Merge remote-tracking branch 'origin/release/20.04'

parents c0f3f32c fa89b943
......@@ -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