fixed not being able to select text backwards

This commit is contained in:
fourtf
2018-08-11 17:35:46 +02:00
parent c768bd9bd9
commit 63eaf3b94c
4 changed files with 22 additions and 16 deletions
@@ -457,7 +457,7 @@ void TwitchMessageBuilder::appendUsername()
app->themes->messages.textColors.system,
FontStyle::ChatMedium);
QColor selfColor = currentUser->color;
QColor selfColor = currentUser->color();
if (!selfColor.isValid()) {
selfColor = app->themes->messages.textColors.system;
}
@@ -490,7 +490,7 @@ void TwitchMessageBuilder::parseHighlights(bool isPastMsg)
QString currentUsername = currentUser->getUserName();
if (this->ircMessage->nick() == currentUsername) {
currentUser->color = this->usernameColor_;
currentUser->setColor(this->usernameColor_);
// Do nothing. Highlights cannot be triggered by yourself
return;
}
@@ -645,8 +645,7 @@ Outcome TwitchMessageBuilder::tryAppendEmote(const EmoteName &name)
flags = MessageElementFlag::BttvEmote;
} else if ((emote = getApp()->emotes->ffz.global(name))) {
flags = MessageElementFlag::FfzEmote;
} else if (twitchChannel &&
(emote = this->twitchChannel->ffzEmote(name))) {
} else if (twitchChannel && (emote = this->twitchChannel->ffzEmote(name))) {
flags = MessageElementFlag::FfzEmote;
}