From f90a5705bd65a4ebb5edc9df003a383039fec555 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 29 Apr 2018 08:17:30 +0200 Subject: Change design, fix crash when closing application --- include/Channel.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/Channel.hpp') diff --git a/include/Channel.hpp b/include/Channel.hpp index 6f5495f..31a17f4 100644 --- a/include/Channel.hpp +++ b/include/Channel.hpp @@ -34,6 +34,9 @@ namespace dchat void processEvent(const sf::Event &event); void draw(sf::RenderWindow &window, Cache &cache); + + static void setCurrent(Channel *channel); + static Channel* getCurrent(); protected: odhtdb::Database *database; odhtdb::DatabaseNode databaseNodeInfo; -- cgit v1.2.3