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/IRCQuery.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/IRCQuery.cpp')
-rw-r--r-- | Applications/IRCClient/IRCQuery.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Applications/IRCClient/IRCQuery.cpp b/Applications/IRCClient/IRCQuery.cpp index 53e180464e..4a539fa42b 100644 --- a/Applications/IRCClient/IRCQuery.cpp +++ b/Applications/IRCClient/IRCQuery.cpp @@ -8,6 +8,8 @@ IRCQuery::IRCQuery(IRCClient& client, const String& name) , m_name(name) , m_log(IRCLogBuffer::create()) { + m_window = m_client.aid_create_window(this, IRCWindow::Query, m_name); + m_window->set_log_buffer(*m_log); } IRCQuery::~IRCQuery() |