Browse Source

UI: Fix UI deadlock after dragging source

Fixes obsproject/obs-studio#2609
wangshaohui 4 years ago
parent
commit
81c4750fbf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      UI/source-tree.cpp

+ 2 - 1
UI/source-tree.cpp

@@ -1162,7 +1162,8 @@ void SourceTree::dropEvent(QDropEvent *event)
 	}
 
 	if (indicator == QAbstractItemView::BelowItem ||
-	    indicator == QAbstractItemView::OnItem)
+	    indicator == QAbstractItemView::OnItem ||
+	    indicator == QAbstractItemView::OnViewport)
 		row++;
 
 	if (row < 0 || row > stm->items.count()) {