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:
cg2121 2023-02-09 01:08:09 -06:00 committed by Jim
parent 3840f92777
commit 7a838e877f

View File

@ -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 */