summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2024-02-02 17:28:04 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2024-02-02 17:28:04 -0500
commita22036a4ff6ea3161b9875fc7322417b2aa43a37 (patch)
tree3d1065cee5e0cb7ae2420185622b61414dc9e579
parent746c24a3696f7a5b98a274679a9f45935b62c74d (diff)
downloadabaddon-portaudio-a22036a4ff6ea3161b9875fc7322417b2aa43a37.tar.gz
abaddon-portaudio-a22036a4ff6ea3161b9875fc7322417b2aa43a37.zip
loosen sort condition
-rw-r--r--src/components/channellist/channellisttree.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/channellist/channellisttree.cpp b/src/components/channellist/channellisttree.cpp
index 59611c7..9236031 100644
--- a/src/components/channellist/channellisttree.cpp
+++ b/src/components/channellist/channellisttree.cpp
@@ -359,8 +359,7 @@ int ChannelListTree::SortFunc(const Gtk::TreeModel::iterator &a, const Gtk::Tree
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;
+ return static_cast<int>(a_sort - b_sort);
}
void ChannelListTree::OnPanedPositionChanged() {