From daa59b89b1f05cf3a2abdee9ef5ac8bffe805b13 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 12 Jan 2019 20:39:23 +0100 Subject: Fix multithreading crashes --- src/WindowNotification.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/WindowNotification.cpp') diff --git a/src/WindowNotification.cpp b/src/WindowNotification.cpp index 9e17108..84365e9 100644 --- a/src/WindowNotification.cpp +++ b/src/WindowNotification.cpp @@ -29,7 +29,7 @@ namespace dchat label.set_text(text); set_visible(true); revealer.set_reveal_child(true); - int showTime = (int)std::max(1.0, (double)text.size() * 0.1) * 1000; + unsigned int showTime = (int)std::max(1.0, (double)text.size() * 0.1) * 1000; hideTimer = Glib::signal_timeout().connect([this] { @@ -43,4 +43,4 @@ namespace dchat return false; }, showTime + revealer.get_transition_duration()); } -} \ No newline at end of file +} -- cgit v1.2.3