Skip to content

Commit

Permalink
Gui: fix missing tree view sync after drag and drop
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder authored and wwmayer committed Oct 8, 2019
1 parent 1833339 commit 5c3e7d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Gui/Tree.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 5c3e7d0

Please sign in to comment.