summaryrefslogtreecommitdiff
path: root/components/channels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'components/channels.cpp')
-rw-r--r--components/channels.cpp3
1 files changed, 2 insertions, 1 deletions
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) {