diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index b5972bfb2ef3..3178ece6108d 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -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