From 244726fc66c98215b2ec7d0ee43e668f431d5861 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 12 Apr 2021 01:51:19 -0400 Subject: fix some warnings --- windows/profilewindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'windows/profilewindow.cpp') diff --git a/windows/profilewindow.cpp b/windows/profilewindow.cpp index 58f3b28..2e41692 100644 --- a/windows/profilewindow.cpp +++ b/windows/profilewindow.cpp @@ -36,11 +36,12 @@ ProfileWindow::ProfileWindow(Snowflake user_id) if (user.HasAvatar()) AddPointerCursor(m_avatar_ev); m_avatar_ev.signal_button_press_event().connect([this, user](GdkEventButton *event) -> bool { - if (event->type == GDK_BUTTON_PRESS && event->button == GDK_BUTTON_PRIMARY) + if (event->type == GDK_BUTTON_PRESS && event->button == GDK_BUTTON_PRIMARY) { if (user.HasAnimatedAvatar()) LaunchBrowser(user.GetAvatarURL("gif", "512")); else LaunchBrowser(user.GetAvatarURL("png", "512")); + } return false; }); -- cgit v1.2.3