From 345bcdb9636c459709328d53bec99c80ea183e46 Mon Sep 17 00:00:00 2001 From: fourtf Date: Sat, 1 May 2021 12:47:33 +0200 Subject: [PATCH] adds assertInGuiThread to getApp() (#2695) --- src/Application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Application.cpp b/src/Application.cpp index 843f39f8..71575702 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -9,6 +9,7 @@ #include "controllers/commands/CommandController.hpp" #include "controllers/ignores/IgnoreController.hpp" #include "controllers/notifications/NotificationController.hpp" +#include "debug/AssertInGuiThread.hpp" #include "messages/MessageBuilder.hpp" #include "providers/bttv/BttvEmotes.hpp" #include "providers/chatterino/ChatterinoBadges.hpp" @@ -379,6 +380,8 @@ Application *getApp() { assert(Application::instance != nullptr); + assertInGuiThread(); + return Application::instance; }