From f8c0168adc501f7d576aefa5e01f1c1b64123ba1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 7 Sep 2019 20:01:37 +0200 Subject: IRCClient: Fix window selection after GModelSelection changes --- Applications/IRCClient/IRCAppWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Applications') 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() -- cgit v1.2.3