Gui: fix missing tree view sync after drag and drop
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user