summaryrefslogtreecommitdiff
path: root/Applications/IRCClient
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-07 20:01:37 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-07 20:01:37 +0200
commitf8c0168adc501f7d576aefa5e01f1c1b64123ba1 (patch)
treec6d729f8fe6fc81c63a08d0df6f168dfae7be783 /Applications/IRCClient
parent55bae788f035bfe2194aa0dcf3fef62d6aa9803b (diff)
downloadserenity-f8c0168adc501f7d576aefa5e01f1c1b64123ba1.zip
IRCClient: Fix window selection after GModelSelection changes
Diffstat (limited to 'Applications/IRCClient')
-rw-r--r--Applications/IRCClient/IRCAppWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/IRCClient/IRCAppWindow.cpp b/Applications/IRCClient/IRCAppWindow.cpp
index a6ec506974..a8903ec56b 100644
--- a/Applications/IRCClient/IRCAppWindow.cpp
+++ b/Applications/IRCClient/IRCAppWindow.cpp
@@ -202,7 +202,7 @@ void IRCAppWindow::set_active_window(IRCWindow& window)
m_container->set_active_widget(&window);
window.clear_unread_count();
auto index = m_window_list->model()->index(m_client.window_index(window));
- m_window_list->model()->set_selected_index(index);
+ m_window_list->selection().set(index);
}
void IRCAppWindow::update_part_action()