Block preselect on selection

This commit is contained in:
dzid26
2025-05-26 16:44:05 +01:00
committed by Chris Hennes
parent 5a71fbfdf6
commit 3ebe4b4264

View File

@@ -3202,7 +3202,6 @@ void TreeWidget::onUpdateStatus()
void TreeWidget::onItemEntered(QTreeWidgetItem* item)
{
// object item selected
if (item && item->type() == TreeWidget::ObjectType) {
auto objItem = static_cast<DocumentObjectItem*>(item);
objItem->displayStatusInfo();
@@ -3468,6 +3467,11 @@ void TreeWidget::onItemSelectionChanged()
// block tmp. the connection to avoid to notify us ourself
bool lock = this->blockSelection(true);
if (preselectTimer->isActive()) {
// block preselect after selecting
preselectTimer->stop();
}
if (selectTimer->isActive())
onSelectTimer();
else