diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-01-12 20:39:23 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-01-12 20:39:26 +0100 |
commit | daa59b89b1f05cf3a2abdee9ef5ac8bffe805b13 (patch) | |
tree | 4b027770beec143d9e514819b6ca30d4a9695eab /src/WindowNotification.cpp | |
parent | fe4199dace73ee38262528f7ae88cbfba99120dd (diff) |
Fix multithreading crashes
Diffstat (limited to 'src/WindowNotification.cpp')
-rw-r--r-- | src/WindowNotification.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 +} |