Explorar o código

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 %!s(int64=6) %!d(string=hai) anos
pai
achega
4d3414a1ce
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);