diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-09-25 01:44:09 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-09-25 01:44:09 -0400 |
commit | 3027e00905b19282a4f501a26f7a4f71bc6940ea (patch) | |
tree | a4a3f92bf65887771cb9a19905fea468d359453d /src/windows/profile | |
parent | 2ecbacc9243080c89c415a68b65eef34a1054a53 (diff) | |
download | abaddon-portaudio-3027e00905b19282a4f501a26f7a4f71bc6940ea.tar.gz abaddon-portaudio-3027e00905b19282a4f501a26f7a4f71bc6940ea.zip |
open browser on mouse release (fixes #108)
Diffstat (limited to 'src/windows/profile')
-rw-r--r-- | src/windows/profile/userinfopane.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/windows/profile/userinfopane.cpp b/src/windows/profile/userinfopane.cpp index a17dbff..b62da93 100644 --- a/src/windows/profile/userinfopane.cpp +++ b/src/windows/profile/userinfopane.cpp @@ -41,13 +41,13 @@ ConnectionItem::ConnectionItem(const ConnectionData &conn) m_box.add(m_name); if (!url.empty()) { auto cb = [url](GdkEventButton *event) -> bool { - if (event->type == GDK_BUTTON_PRESS && event->button == GDK_BUTTON_PRIMARY) { + if (event->type == GDK_BUTTON_RELEASE && event->button == GDK_BUTTON_PRIMARY) { LaunchBrowser(url); return true; } return false; }; - signal_button_press_event().connect(sigc::track_obj(cb, *this)); + signal_button_release_event().connect(sigc::track_obj(cb, *this)); AddPointerCursor(*this); } m_overlay.add(m_box); |