X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatline-old.cpp;h=497017da684e97e37db3e2f7f0263f6178370272;hb=858cba7fac9928549219de070397be65e1b92cde;hp=2df6bbb43b6fc5646aa0da9e9f8b3da87ffe8c54;hpb=600a5683c1a8e679b7b63a00d5b1211b5b9771c7;p=quassel.git diff --git a/src/qtui/chatline-old.cpp b/src/qtui/chatline-old.cpp index 2df6bbb4..497017da 100644 --- a/src/qtui/chatline-old.cpp +++ b/src/qtui/chatline-old.cpp @@ -29,20 +29,21 @@ /** * \param m The message to be layouted and rendered */ -ChatLineOld::ChatLineOld(Message m) { +QColor ChatLineOld::_highlightColor; +ChatLineOld::ChatLineOld(const Message &m) { hght = 0; - msg = m; selectionMode = None; isHighlight = false; formatMsg(msg); - QtUiSettings s("QtUi/Colors"); - _highlightColor = s.value("highlightColor", QVariant(QColor("lightcoral"))).value(); + if(!_highlightColor.isValid()) { + QtUiSettings s("QtUi/Colors"); + _highlightColor = s.value("highlightColor", QVariant(QColor("lightcoral"))).value(); + } } ChatLineOld::~ChatLineOld() { - } void ChatLineOld::formatMsg(Message msg) {