summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/widgets/combobox.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/widgets/combobox.cc b/client/widgets/combobox.cc
index 2bf6087..a1a69af 100644
--- a/client/widgets/combobox.cc
+++ b/client/widgets/combobox.cc
@@ -29,6 +29,7 @@
#include <QCompleter>
#include <QRegExpValidator>
#include <QRegExp>
+#include <QLineEdit>
#include "common.h"
@@ -153,7 +154,8 @@ void ComboBox::changed()
palette.setBrush(QPalette::Base, QBrush(QColor(230, 200, 200)));
}
- setPalette(palette);
+ if(lineEdit()) lineEdit()->setPalette(palette);
+ else setPalette(palette);
}
void ComboBox::enable()