diff options
Diffstat (limited to 'Applications/IRCClient/IRCWindowListModel.cpp')
-rw-r--r-- | Applications/IRCClient/IRCWindowListModel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Applications/IRCClient/IRCWindowListModel.cpp b/Applications/IRCClient/IRCWindowListModel.cpp index 214e2a9747..a167df21fe 100644 --- a/Applications/IRCClient/IRCWindowListModel.cpp +++ b/Applications/IRCClient/IRCWindowListModel.cpp @@ -1,6 +1,7 @@ #include "IRCWindowListModel.h" #include "IRCWindow.h" #include "IRCClient.h" +#include "IRCChannel.h" #include <stdio.h> #include <time.h> @@ -58,6 +59,8 @@ GVariant IRCWindowListModel::data(const GModelIndex& index, Role role) const auto& window = m_client.window_at(index.row()); if (window.unread_count()) return Color(Color::Red); + if (!window.channel().is_open()) + return Color(Color::LightGray); return Color(Color::Black); } } |