diff --git a/src/Application.cpp b/src/Application.cpp index 843f39f86..71575702a 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; }