fix: no longer crash on clip creation in "special" channels (#2528)

This commit is contained in:
Leon Richardt
2021-03-15 17:45:56 +01:00
committed by GitHub
parent 49bd1bd488
commit 3f206d46af
3 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -123,7 +123,9 @@ Split::Split(QWidget *parent)
// Alt+X: create clip LUL
createShortcut(this, "Alt+X", [this] {
if (!this->getChannel()->isTwitchChannel())
if (const auto type = this->getChannel()->getType();
type != Channel::Type::Twitch &&
type != Channel::Type::TwitchWatching)
{
return;
}