Commit 18fc9213 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make sure that we don't switch to same folder

parent 97e8b513
Pipeline #98186 passed with stage
in 17 minutes and 16 seconds
...@@ -491,6 +491,9 @@ void KMMainWidget::slotFolderChanged(const Akonadi::Collection &collection) ...@@ -491,6 +491,9 @@ void KMMainWidget::slotFolderChanged(const Akonadi::Collection &collection)
void KMMainWidget::slotHistorySwitchFolder(const Akonadi::Collection &collection) void KMMainWidget::slotHistorySwitchFolder(const Akonadi::Collection &collection)
{ {
if (mCurrentCollection == collection) {
return;
}
if (mFolderTreeWidget) { if (mFolderTreeWidget) {
mFolderTreeWidget->selectCollectionFolder(collection, false); // Don't expand treewidget mFolderTreeWidget->selectCollectionFolder(collection, false); // Don't expand treewidget
} }
......
Supports Markdown
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