aboutsummaryrefslogtreecommitdiff
path: root/include/Channel.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-29 08:17:30 +0200
committerdec05eba <dec05eba@protonmail.com>2018-04-29 08:17:36 +0200
commitf90a5705bd65a4ebb5edc9df003a383039fec555 (patch)
treef0180d946bddc15a0a13d9148562418cb3a4108e /include/Channel.hpp
parent68dcd3c4e17355e1c2b640fe1382743d7cb61ea2 (diff)
Change design, fix crash when closing application
Diffstat (limited to 'include/Channel.hpp')
-rw-r--r--include/Channel.hpp3
1 files changed, 3 insertions, 0 deletions
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;