Diffstat (limited to 'noncore/net/opieirc/ircservertab.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircservertab.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/noncore/net/opieirc/ircservertab.cpp b/noncore/net/opieirc/ircservertab.cpp index 1f377aa..724f4bd 100644 --- a/noncore/net/opieirc/ircservertab.cpp +++ b/noncore/net/opieirc/ircservertab.cpp | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | IRCServerTab::IRCServerTab(IRCServer *server, MainWindow *mainWindow, QWidget *parent, const char *name, WFlags f) : IRCTab(parent, name, f) { | 4 | IRCServerTab::IRCServerTab(IRCServer server, MainWindow *mainWindow, QWidget *parent, const char *name, WFlags f) : IRCTab(parent, name, f) { |
5 | m_server = server; | 5 | m_server = server; |
6 | m_session = new IRCSession(m_server); | 6 | m_session = new IRCSession(&m_server); |
7 | m_mainWindow = mainWindow; | 7 | m_mainWindow = mainWindow; |
8 | m_close = FALSE; | 8 | m_close = FALSE; |
9 | m_description->setText(tr("Connection to")+" <b>" + server->hostname() + ":" + QString::number(server->port()) + "</b>"); | 9 | m_description->setText(tr("Connection to")+" <b>" + server.hostname() + ":" + QString::number(server.port()) + "</b>"); |
10 | m_textview = new QTextView(this); | 10 | m_textview = new QTextView(this); |
@@ -32,3 +32,2 @@ IRCServerTab::~IRCServerTab() { | |||
32 | delete m_session; | 32 | delete m_session; |
33 | delete m_server; | ||
34 | } | 33 | } |
@@ -48,3 +47,3 @@ IRCSession *IRCServerTab::session() { | |||
48 | IRCServer *IRCServerTab::server() { | 47 | IRCServer *IRCServerTab::server() { |
49 | return m_server; | 48 | return &m_server; |
50 | } | 49 | } |