summaryrefslogtreecommitdiff
path: root/src/components/channellist
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-10-26 00:58:57 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-10-26 00:58:57 -0400
commit2168f011f59b4947d802dceac3ce60b51fee0b2f (patch)
tree6474b530588af5f2d7caf865fe82fbe68476201f /src/components/channellist
parent182128705e10adf529b39a290232f0cd27bf4837 (diff)
downloadabaddon-portaudio-2168f011f59b4947d802dceac3ce60b51fee0b2f.tar.gz
abaddon-portaudio-2168f011f59b4947d802dceac3ce60b51fee0b2f.zip
fix build
Diffstat (limited to 'src/components/channellist')
-rw-r--r--src/components/channellist/channellist.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/channellist/channellist.cpp b/src/components/channellist/channellist.cpp
index 6cb5321..de19a80 100644
--- a/src/components/channellist/channellist.cpp
+++ b/src/components/channellist/channellist.cpp
@@ -46,10 +46,14 @@ void ChannelList::SetClassic(bool value) {
void ChannelList::ConnectSignals() {
// TODO: if these all just travel upwards to the singleton then get rid of them but mayeb they dont
+
+#ifdef WITH_LIBHANDY
m_tree.signal_action_open_new_tab().connect([this](Snowflake id) {
m_signal_action_open_new_tab.emit(id);
});
+#endif
+#ifdef WITH_VOICE
m_tree.signal_action_join_voice_channel().connect([this](Snowflake id) {
m_signal_action_join_voice_channel.emit(id);
});
@@ -57,6 +61,7 @@ void ChannelList::ConnectSignals() {
m_tree.signal_action_disconnect_voice().connect([this]() {
m_signal_action_disconnect_voice.emit();
});
+#endif
m_tree.signal_action_channel_item_select().connect([this](Snowflake id) {
m_signal_action_channel_item_select.emit(id);
@@ -71,10 +76,13 @@ void ChannelList::ConnectSignals() {
});
}
+#ifdef WITH_LIBHANDY
ChannelList::type_signal_action_open_new_tab ChannelList::signal_action_open_new_tab() {
return m_signal_action_open_new_tab;
}
+#endif
+#ifdef WITH_VOICE
ChannelList::type_signal_action_join_voice_channel ChannelList::signal_action_join_voice_channel() {
return m_signal_action_join_voice_channel;
}
@@ -82,6 +90,7 @@ ChannelList::type_signal_action_join_voice_channel ChannelList::signal_action_jo
ChannelList::type_signal_action_disconnect_voice ChannelList::signal_action_disconnect_voice() {
return m_signal_action_disconnect_voice;
}
+#endif
ChannelList::type_signal_action_channel_item_select ChannelList::signal_action_channel_item_select() {
return m_signal_action_channel_item_select;