Commit ff0a4938 authored by Andrey Butirsky's avatar Andrey Butirsky
Browse files

fix: Dolphin right click and compress doesn't scroll

For newly created items being selected, we had updateViewState() called
twice, and the first call blocked work execution needed in the other one
parent a4292cf0
Pipeline #180447 passed with stage
in 8 minutes and 56 seconds
......@@ -1611,12 +1611,13 @@ void DolphinView::updateViewState()
m_view->scrollToItem(currentIndex);
m_scrollToCurrentItem = false;
}
m_currentItemUrl = QUrl();
} else {
selectionManager->setCurrentItem(0);
}
} else {
m_currentItemUrl = QUrl();
}
m_currentItemUrl = QUrl();
}
if (!m_restoredContentsPosition.isNull()) {
......@@ -1651,8 +1652,10 @@ void DolphinView::updateViewState()
}
}
selectionManager->beginAnchoredSelection(selectionManager->currentItem());
selectionManager->setSelectedItems(selectedItems);
if (!selectedItems.isEmpty()) {
selectionManager->beginAnchoredSelection(selectionManager->currentItem());
selectionManager->setSelectedItems(selectedItems);
}
}
}
}
......
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