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.
This commit is contained in:
jp9000 2019-06-11 22:20:51 -07:00
parent b5b11dbf47
commit 4d3414a1ce

View File

@ -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);