From 4d3414a1ce635786b6922a700401e4d30dd14f10 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 11 Jun 2019 22:20:51 -0700 Subject: [PATCH] UI: Fix editor inheriting source list stylesheet Fixes a bug where if the user gave a custom color to a source list item, the edit box used with renaming the item would also have that background color while editing the name, awkwardly. --- UI/source-tree.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/source-tree.cpp b/UI/source-tree.cpp index c556cfbce..e46ad5415 100644 --- a/UI/source-tree.cpp +++ b/UI/source-tree.cpp @@ -263,6 +263,7 @@ void SourceTreeItem::EnterEditMode() setFocusPolicy(Qt::StrongFocus); boxLayout->removeWidget(label); editor = new QLineEdit(label->text()); + editor->setStyleSheet("background: none"); editor->selectAll(); editor->installEventFilter(this); boxLayout->insertWidget(1, editor);