mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-03 14:16:36 -05:00
UI: Fix source icons being shifted to the right
This commit is contained in:
@@ -317,7 +317,7 @@ void SourceTreeItem::EnterEditMode()
|
||||
editor->setStyleSheet("background: none");
|
||||
editor->selectAll();
|
||||
editor->installEventFilter(this);
|
||||
boxLayout->insertWidget(1, editor);
|
||||
boxLayout->insertWidget(2, editor);
|
||||
setFocusProxy(editor);
|
||||
}
|
||||
|
||||
@@ -336,7 +336,7 @@ void SourceTreeItem::ExitEditMode(bool save)
|
||||
delete editor;
|
||||
editor = nullptr;
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
boxLayout->insertWidget(1, label);
|
||||
boxLayout->insertWidget(2, label);
|
||||
|
||||
/* ----------------------------------------- */
|
||||
/* check for empty string */
|
||||
|
||||
Reference in New Issue
Block a user