diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-12 01:51:19 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-12 01:51:19 -0400 |
commit | 244726fc66c98215b2ec7d0ee43e668f431d5861 (patch) | |
tree | df7bc64d52727ace8e930eddd260a13055f87b1f /windows | |
parent | 1251d89ef0577c9d450a8581d52dd94b67a45075 (diff) | |
download | abaddon-portaudio-244726fc66c98215b2ec7d0ee43e668f431d5861.tar.gz abaddon-portaudio-244726fc66c98215b2ec7d0ee43e668f431d5861.zip |
fix some warnings
Diffstat (limited to 'windows')
-rw-r--r-- | windows/guildsettings/infopane.cpp | 3 | ||||
-rw-r--r-- | windows/profilewindow.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/windows/guildsettings/infopane.cpp b/windows/guildsettings/infopane.cpp index d0e8fe7..d173614 100644 --- a/windows/guildsettings/infopane.cpp +++ b/windows/guildsettings/infopane.cpp @@ -45,11 +45,12 @@ GuildSettingsInfoPane::GuildSettingsInfoPane(Snowflake id) m_guild_icon_ev.set_tooltip_text("Click to choose a file, right click to paste"); m_guild_icon_ev.signal_button_press_event().connect([this](GdkEventButton *event) -> bool { - if (event->type == GDK_BUTTON_PRESS) + if (event->type == GDK_BUTTON_PRESS) { if (event->button == GDK_BUTTON_PRIMARY) UpdateGuildIconPicker(); else if (event->button == GDK_BUTTON_SECONDARY) UpdateGuildIconClipboard(); + } return false; }); 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; }); |