From 40897ece3ced8bfc051708a8d85f413f330631a9 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 4 Aug 2021 21:30:24 -0400 Subject: basic window to view threads --- components/channels.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/channels.cpp') diff --git a/components/channels.cpp b/components/channels.cpp index 644e090..f12d56a 100644 --- a/components/channels.cpp +++ b/components/channels.cpp @@ -308,7 +308,8 @@ void ChannelList::SetActiveChannel(Snowflake id) { if (channel_iter) { m_view.expand_to_path(m_model->get_path(channel_iter)); m_view.get_selection()->select(channel_iter); - } + } else + m_view.get_selection()->unselect_all(); } Gtk::TreeModel::iterator ChannelList::AddGuild(const GuildData &guild) { -- cgit v1.2.3