From 4c392178dac1de9a299beb78989c4e0f3fecade9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 20 May 2018 11:15:15 +0200 Subject: Add image preview and url/image open in browser --- src/Chatbar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Chatbar.cpp') diff --git a/src/Chatbar.cpp b/src/Chatbar.cpp index bd510f7..aab13a0 100644 --- a/src/Chatbar.cpp +++ b/src/Chatbar.cpp @@ -155,11 +155,11 @@ namespace dchat } } - void Chatbar::processEvent(const sf::Event &event, Channel *channel) + void Chatbar::processEvent(const sf::Event &event, Cache &cache, Channel *channel) { if(!focused) return; - text.processEvent(event); + text.processEvent(event, cache); if(event.type == sf::Event::TextEntered) { if(event.text.unicode == 13) // enter -- cgit v1.2.3