From 905a9b962b1464cf2f293b21634d4aa665c009ab Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 4 Nov 2018 03:44:11 +0100 Subject: Fix crash when creating room when user is not a member of any other room --- include/Window.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/Window.hpp') diff --git a/include/Window.hpp b/include/Window.hpp index a29ec62..4355fb8 100644 --- a/include/Window.hpp +++ b/include/Window.hpp @@ -2,6 +2,7 @@ #include "ChatWindow.hpp" #include "LoginWindow.hpp" +#include "WindowNotification.hpp" #include #include #include @@ -17,6 +18,9 @@ namespace dchat public: Window(); virtual ~Window(); + + std::shared_ptr rooms; + WindowNotification *windowNotification; private: bool drawBackground(const Cairo::RefPtr &cairo); private: @@ -26,7 +30,6 @@ namespace dchat void draw(const Cairo::RefPtr &cairo) { Gtk::Overlay::draw(cairo); } }; - std::shared_ptr rooms; std::mutex databaseCallbackMutex; OverlayDrawable overlay; Gtk::Stack stack; -- cgit v1.2.3