Gui: fix missing tree view sync after drag and drop

This commit is contained in:
Zheng, Lei
2019-09-19 12:25:26 +08:00
committed by wmayer
parent c765ff8fa2
commit 855e3fd724

View File

@@ -2095,6 +2095,12 @@ void TreeWidget::dropEvent(QDropEvent *event)
if(touched && TreeParams::Instance()->RecomputeOnDrop())
thisDoc->recompute();
if(touched && TreeParams::Instance()->SyncView()) {
auto gdoc = Application::Instance->getDocument(thisDoc);
if(gdoc)
gdoc->setActiveView();
}
}
void TreeWidget::drawRow(QPainter *painter, const QStyleOptionViewItem &options, const QModelIndex &index) const