summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-10-27 01:49:29 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-10-27 01:49:29 -0400
commit1abe572c5bac5fcc1328286981e7e58f0f7a30f8 (patch)
treec12862a5dca708d84c9cdf4a5c314df996df324b /src/components
parentc35d8b4e2d9c70bd5ed99c06da40908bfe5cb0db (diff)
downloadabaddon-portaudio-1abe572c5bac5fcc1328286981e7e58f0f7a30f8.tar.gz
abaddon-portaudio-1abe572c5bac5fcc1328286981e7e58f0f7a30f8.zip
convert menu path from filter to child immediately
Diffstat (limited to 'src/components')
-rw-r--r--src/components/channellist/channellisttree.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/channellist/channellisttree.cpp b/src/components/channellist/channellisttree.cpp
index b9b5c08..2a4970d 100644
--- a/src/components/channellist/channellisttree.cpp
+++ b/src/components/channellist/channellisttree.cpp
@@ -1120,7 +1120,9 @@ void ChannelListTree::OnMessageCreate(const Message &msg) {
bool ChannelListTree::OnButtonPressEvent(GdkEventButton *ev) {
if (ev->button == GDK_BUTTON_SECONDARY && ev->type == GDK_BUTTON_PRESS) {
if (m_view.get_path_at_pos(static_cast<int>(ev->x), static_cast<int>(ev->y), m_path_for_menu)) {
- auto row = (*m_filter_model->get_iter(m_path_for_menu));
+ m_path_for_menu = m_filter_model->convert_path_to_child_path(m_path_for_menu);
+ if (!m_path_for_menu) return true;
+ auto row = (*m_model->get_iter(m_path_for_menu));
switch (static_cast<RenderType>(row[m_columns.m_type])) {
case RenderType::Guild:
OnGuildSubmenuPopup();