Fixes stylesheets not being able to reference sender hashes in Qss
selectors.
Allows the following to work:
ChatLine::nick#action[sender="00"] { foreground: #e90d7f; }
Just like this currently works:
ChatLine::nick#plain[sender="00"] { foreground: #e90d7f; }
UiStyle::StyledMessage::StyledMessage(const Message &msg)
: Message(msg)
{
UiStyle::StyledMessage::StyledMessage(const Message &msg)
: Message(msg)
{
- if (type() == Message::Plain)
+ if (type() == Message::Plain || type() == Message::Action)
- _senderHash = 0x00; // this means we never compute the hash for msgs that aren't plain
+ _senderHash = 0x00;
+ // This means we never compute the hash for msgs that aren't Plain or Action