Browse Source

UI: Set focus back to label after source rename

Fixes obsproject/obs-studio#3465
Joshua Berenhaus 5 năm trước cách đây
mục cha
commit
f56ab9a38b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      UI/source-tree.cpp

+ 1 - 0
UI/source-tree.cpp

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