diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-16 01:45:49 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-16 01:45:49 +0100 |
commit | 1394677528c62bd05f487d16921f2d0b693d28e6 (patch) | |
tree | 455a6b52d7fc4b6e8e1e3f7f98750f571cc0d4c8 /Applications/IRCClient/IRCChannel.cpp | |
parent | fc7f700c201f1202fd9534d626b423b4e09f44a0 (diff) | |
download | serenity-1394677528c62bd05f487d16921f2d0b693d28e6.zip |
IRCClient: Refactor window creation responsibilities.
IRCChannel and IRCQuery objects now create their own windows with the
help of an aid_create_window callback provided by IRCAppWindow.
There's still a bit of murk but this is already an improvement.
Diffstat (limited to 'Applications/IRCClient/IRCChannel.cpp')
-rw-r--r-- | Applications/IRCClient/IRCChannel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Applications/IRCClient/IRCChannel.cpp b/Applications/IRCClient/IRCChannel.cpp index a96ae54404..4e2d68d444 100644 --- a/Applications/IRCClient/IRCChannel.cpp +++ b/Applications/IRCClient/IRCChannel.cpp @@ -10,6 +10,8 @@ IRCChannel::IRCChannel(IRCClient& client, const String& name) , m_log(IRCLogBuffer::create()) { m_member_model = new IRCChannelMemberListModel(*this); + m_window = m_client.aid_create_window(this, IRCWindow::Channel, m_name); + m_window->set_log_buffer(*m_log); } IRCChannel::~IRCChannel() |