UI: Set focus back to label after source rename

Fixes obsproject/obs-studio#3465
master
Joshua Berenhaus 2020-10-06 15:24:44 -07:00 committed by Jim
parent 3486c0b363
commit f56ab9a38b
1 changed files with 1 additions and 0 deletions

View File

@ -354,6 +354,7 @@ void SourceTreeItem::ExitEditMode(bool save)
editor = nullptr;
setFocusPolicy(Qt::NoFocus);
boxLayout->insertWidget(index, label);
label->setFocus();
/* ----------------------------------------- */
/* check for empty string */