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

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

parents c0f3f32c fa89b943
...@@ -568,9 +568,11 @@ void KMMainWidget::folderSelected(const Akonadi::Collection &col) ...@@ -568,9 +568,11 @@ void KMMainWidget::folderSelected(const Akonadi::Collection &col)
void KMMainWidget::slotShowSelectedFolderInPane() void KMMainWidget::slotShowSelectedFolderInPane()
{ {
if (mCurrentCollection.isValid()) { if (mCurrentCollection.isValid()) {
QModelIndex idx = Akonadi::EntityTreeModel::modelIndexForCollection(KMKernel::self()->entityTreeModel(), mCurrentCollection); const QModelIndex idx = Akonadi::EntityTreeModel::modelIndexForCollection(KMKernel::self()->entityTreeModel(), mCurrentCollection);
if (idx.isValid()) {
mMessagePane->setCurrentFolder(mCurrentCollection, idx, false, mPreSelectionMode); mMessagePane->setCurrentFolder(mCurrentCollection, idx, false, mPreSelectionMode);
} }
}
updateMessageActions(); updateMessageActions();
updateFolderMenu(); 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