mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
UI: Fix scene item edit drag & drop bug
If an user exits the source tree edit mode, without changing the name, the scene item would become undraggable until the scene is refreshed. We were setting the focus to just the label, not the whole widget.
This commit is contained in:
+1
-1
@@ -413,7 +413,7 @@ void SourceTreeItem::ExitEditModeInternal(bool save)
|
||||
editor = nullptr;
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
boxLayout->insertWidget(index, label);
|
||||
label->setFocus();
|
||||
setFocus();
|
||||
|
||||
/* ----------------------------------------- */
|
||||
/* check for empty string */
|
||||
|
||||
Reference in New Issue
Block a user