From 746c24a3696f7a5b98a274679a9f45935b62c74d Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 2 Feb 2024 04:16:29 -0500 Subject: try fix build --- src/components/channellist/channellisttree.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/components/channellist/channellisttree.cpp') 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(a_sort - b_sort); return 0; } -- cgit v1.2.3