Browse Source

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.
jp9000 6 years ago
parent
commit
4d3414a1ce
1 changed files with 1 additions and 0 deletions
  1. 1 0
      UI/source-tree.cpp

+ 1 - 0
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);