Fix weird IRC channels causing crashes due to bad cast (#3918)
This commit is contained in:
@@ -47,6 +47,7 @@
|
|||||||
- Bugfix: Fix split focusing being broken in certain circumstances when the "Show input when it's empty" setting was disabled. (#3838, #3860)
|
- Bugfix: Fix split focusing being broken in certain circumstances when the "Show input when it's empty" setting was disabled. (#3838, #3860)
|
||||||
- Bugfix: Always refresh tab when a contained split's channel is set. (#3849)
|
- Bugfix: Always refresh tab when a contained split's channel is set. (#3849)
|
||||||
- Bugfix: Drop trailing whitespace from Twitch system messages. (#3888)
|
- Bugfix: Drop trailing whitespace from Twitch system messages. (#3888)
|
||||||
|
- Bugfix: Fix crash related to logging IRC channels (#3918)
|
||||||
- Dev: Remove official support for QMake. (#3839, #3883)
|
- Dev: Remove official support for QMake. (#3839, #3883)
|
||||||
- Dev: Rewrite LimitedQueue (#3798)
|
- Dev: Rewrite LimitedQueue (#3798)
|
||||||
- Dev: Overhaul highlight system by moving all checks into a Controller allowing for easier tests. (#3399, #3801, #3835)
|
- Dev: Overhaul highlight system by moving all checks into a Controller allowing for easier tests. (#3399, #3801, #3835)
|
||||||
|
|||||||
@@ -88,9 +88,12 @@ void Channel::addMessage(MessagePtr message,
|
|||||||
QString channelPlatform("other");
|
QString channelPlatform("other");
|
||||||
if (this->type_ == Type::Irc)
|
if (this->type_ == Type::Irc)
|
||||||
{
|
{
|
||||||
auto irc = static_cast<IrcChannel *>(this);
|
auto *irc = dynamic_cast<IrcChannel *>(this);
|
||||||
channelPlatform =
|
if (irc != nullptr)
|
||||||
QString("irc-%1").arg(irc->server()->userFriendlyIdentifier());
|
{
|
||||||
|
channelPlatform = QString("irc-%1").arg(
|
||||||
|
irc->server()->userFriendlyIdentifier());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (this->isTwitchChannel())
|
else if (this->isTwitchChannel())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user