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:
parent
b5b11dbf47
commit
4d3414a1ce
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user