From 08cf701af36d058157248fbb3cdb0472579cc94f Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 26 May 2018 13:38:25 +0200 Subject: [PATCH] quick linux fix --- src/widgets/window.cpp | 4 ++++ src/widgets/window.hpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/widgets/window.cpp b/src/widgets/window.cpp index d90d31182..c5f84dc64 100644 --- a/src/widgets/window.cpp +++ b/src/widgets/window.cpp @@ -32,6 +32,10 @@ Window::Window(WindowType _type) auto app = getApp(); app->accounts->Twitch.currentUserChanged.connect([this] { + if (this->userLabel == nullptr) { + return; + } + auto user = getApp()->accounts->Twitch.getCurrent(); if (user->isAnon()) { diff --git a/src/widgets/window.hpp b/src/widgets/window.hpp index 702bd9463..75c3b2cd1 100644 --- a/src/widgets/window.hpp +++ b/src/widgets/window.hpp @@ -42,7 +42,7 @@ protected: bool event(QEvent *event) override; private: - RippleEffectLabel *userLabel; + RippleEffectLabel *userLabel = nullptr; WindowType type; float dpi;