浏览代码

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 年之前
父节点
当前提交
4d3414a1ce
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);