summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2024-02-02 04:16:29 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2024-02-02 04:16:29 -0500
commit746c24a3696f7a5b98a274679a9f45935b62c74d (patch)
treeb07f79c575e40f0a5bbdae967462455899aa6dc0 /src
parentb92091b97d1d43e33c3217451f72addbd0f76726 (diff)
downloadabaddon-portaudio-746c24a3696f7a5b98a274679a9f45935b62c74d.tar.gz
abaddon-portaudio-746c24a3696f7a5b98a274679a9f45935b62c74d.zip
try fix build
Diffstat (limited to 'src')
-rw-r--r--src/components/channellist/channellisttree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/channellist/channellisttree.cpp b/src/components/channellist/channellisttree.cpp
index 3c82fc2..59611c7 100644
--- a/src/components/channellist/channellisttree.cpp
+++ b/src/components/channellist/channellisttree.cpp
@@ -355,8 +355,10 @@ int ChannelListTree::SortFunc(const Gtk::TreeModel::iterator &a, const Gtk::Tree
const int64_t b_sort = (*b)[m_columns.m_sort];
if (a_type == RenderType::DMHeader) return -1;
if (b_type == RenderType::DMHeader) return 1;
+#ifdef WITH_VOICE
if (a_type == RenderType::TextChannel && b_type == RenderType::VoiceChannel) return -1;
if (b_type == RenderType::TextChannel && a_type == RenderType::VoiceChannel) return 1;
+#endif
if (a_type == b_type) return static_cast<int>(a_sort - b_sort);
return 0;
}