From 4e85843d4ee8a9899142bfb9cf4eebac3228be25 Mon Sep 17 00:00:00 2001 From: Clayton Groeneveld Date: Tue, 3 Dec 2019 05:55:52 -0600 Subject: [PATCH] UI: Fix source icons being shifted to the right --- UI/source-tree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/source-tree.cpp b/UI/source-tree.cpp index e88bf6d19..ec57b34c7 100644 --- a/UI/source-tree.cpp +++ b/UI/source-tree.cpp @@ -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 */