Diffstat (limited to 'noncore/net/opieirc/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/mainwindow.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/noncore/net/opieirc/mainwindow.cpp b/noncore/net/opieirc/mainwindow.cpp index 3d13ee9..af4ce78 100644 --- a/noncore/net/opieirc/mainwindow.cpp +++ b/noncore/net/opieirc/mainwindow.cpp | |||
@@ -19,15 +19,9 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags f) : QMainWindo | |||
19 | QAction *a = new QAction(tr("New connection"), Resource::loadPixmap("pass"), QString::null, 0, this, 0); | 19 | QAction *a = new QAction(tr("New connection"), Resource::loadPixmap("pass"), QString::null, 0, this, 0); |
20 | connect(a, SIGNAL(activated()), this, SLOT(newConnection())); | 20 | connect(a, SIGNAL(activated()), this, SLOT(newConnection())); |
21 | a->addTo(irc); | 21 | a->addTo(irc); |
22 | |||
23 | m_joinAction = new QAction(tr("Join channel"), Resource::loadPixmap("forward"), QString::null, 0, this, 0); | ||
24 | m_joinAction->setEnabled(FALSE); | ||
25 | connect(m_joinAction, SIGNAL(activated()), this, SLOT(join())); | ||
26 | m_joinAction->addTo(irc); | ||
27 | } | 22 | } |
28 | 23 | ||
29 | void MainWindow::tabSelected(QWidget *) { | 24 | void MainWindow::tabSelected(QWidget *) { |
30 | m_joinAction->setEnabled(TRUE); | ||
31 | } | 25 | } |
32 | 26 | ||
33 | void MainWindow::closeTab() { | 27 | void MainWindow::closeTab() { |
@@ -39,13 +33,6 @@ void MainWindow::closeTab() { | |||
39 | } | 33 | } |
40 | } | 34 | } |
41 | 35 | ||
42 | void MainWindow::join() { | ||
43 | IRCTab *tab = (IRCTab *)m_tabWidget->currentPage(); | ||
44 | if (tab) { | ||
45 | tab->session()->join("#opie.de"); | ||
46 | } | ||
47 | } | ||
48 | |||
49 | void MainWindow::addTab(IRCTab *tab) { | 36 | void MainWindow::addTab(IRCTab *tab) { |
50 | m_tabWidget->addTab(tab, tab->title()); | 37 | m_tabWidget->addTab(tab, tab->title()); |
51 | m_tabWidget->showPage(tab); | 38 | m_tabWidget->showPage(tab); |