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:
parent
3840f92777
commit
7a838e877f
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user