diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-07 20:01:37 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-07 20:01:37 +0200 |
commit | f8c0168adc501f7d576aefa5e01f1c1b64123ba1 (patch) | |
tree | c6d729f8fe6fc81c63a08d0df6f168dfae7be783 /Applications | |
parent | 55bae788f035bfe2194aa0dcf3fef62d6aa9803b (diff) | |
download | serenity-f8c0168adc501f7d576aefa5e01f1c1b64123ba1.zip |
IRCClient: Fix window selection after GModelSelection changes
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/IRCClient/IRCAppWindow.cpp | 2 |
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() |