UI: Set focus back to label after source rename

Fixes obsproject/obs-studio#3465
This commit is contained in:
Joshua Berenhaus
2020-10-09 14:01:25 -07:00
committed by Jim
parent 3486c0b363
commit f56ab9a38b
+1
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 */