Fixed "Could not parse stylesheet"

This commit is contained in:
BuildTools 2021-03-24 21:03:49 +01:00
parent a6c4a7ed98
commit 0f8ead8dc4

View file

@ -13,7 +13,7 @@ _datadir = ostools.getDataDir()
class PesterLogSearchInput(QtWidgets.QLineEdit): class PesterLogSearchInput(QtWidgets.QLineEdit):
def __init__(self, theme, parent=None): def __init__(self, theme, parent=None):
QtWidgets.QLineEdit.__init__(self, parent) QtWidgets.QLineEdit.__init__(self, parent)
self.setStyleSheet(theme["convo/input/style"] + "margin-right:0px;") self.setStyleSheet(theme["convo/input/style"] + "; margin-right:0px;")
def keyPressEvent(self, event): def keyPressEvent(self, event):
QtWidgets.QLineEdit.keyPressEvent(self, event) QtWidgets.QLineEdit.keyPressEvent(self, event)
if hasattr(self.parent(), 'textArea'): if hasattr(self.parent(), 'textArea'):