Diffstat (limited to 'noncore/net/opieirc/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/mainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/net/opieirc/mainwindow.cpp b/noncore/net/opieirc/mainwindow.cpp index 2562f33..1811a0c 100644 --- a/noncore/net/opieirc/mainwindow.cpp +++ b/noncore/net/opieirc/mainwindow.cpp | |||
@@ -1,14 +1,17 @@ | |||
1 | #include <qmenubar.h> | 1 | #include <qmenubar.h> |
2 | #include <qpe/resource.h> | 2 | #include <qpe/resource.h> |
3 | |||
4 | #include <opie2/odebug.h> | ||
5 | |||
3 | #include <qwhatsthis.h> | 6 | #include <qwhatsthis.h> |
4 | 7 | ||
5 | #include "mainwindow.h" | 8 | #include "mainwindow.h" |
6 | #include "ircservertab.h" | 9 | #include "ircservertab.h" |
7 | #include "ircserverlist.h" | 10 | #include "ircserverlist.h" |
8 | #include "ircsettings.h" | 11 | #include "ircsettings.h" |
9 | 12 | ||
10 | QString MainWindow::appCaption() { | 13 | QString MainWindow::appCaption() { |
11 | return QObject::tr("Opie IRC"); | 14 | return QObject::tr("Opie IRC"); |
12 | } | 15 | } |
13 | 16 | ||
14 | 17 | ||
@@ -76,24 +79,25 @@ void MainWindow::changeEvent(IRCTab *tab) { | |||
76 | void MainWindow::killTab(IRCTab *tab, bool imediate) { | 79 | void MainWindow::killTab(IRCTab *tab, bool imediate) { |
77 | m_toDelete.append( tab ); | 80 | m_toDelete.append( tab ); |
78 | 81 | ||
79 | if ( imediate ) | 82 | if ( imediate ) |
80 | slotKillTabsLater(); | 83 | slotKillTabsLater(); |
81 | else | 84 | else |
82 | QTimer::singleShot(0, this, SLOT(slotKillTabsLater()) ); | 85 | QTimer::singleShot(0, this, SLOT(slotKillTabsLater()) ); |
83 | } | 86 | } |
84 | 87 | ||
85 | void MainWindow::slotKillTabsLater() { | 88 | void MainWindow::slotKillTabsLater() { |
86 | for ( QListIterator<IRCTab> it(m_toDelete); it.current(); ++it ) { | 89 | for ( QListIterator<IRCTab> it(m_toDelete); it.current(); ++it ) { |
87 | m_tabWidget->removePage( it.current() ); | 90 | m_tabWidget->removePage( it.current() ); |
91 | odebug << it.current() << oendl; | ||
88 | m_tabs.remove( it.current() ); | 92 | m_tabs.remove( it.current() ); |
89 | } | 93 | } |
90 | 94 | ||
91 | m_toDelete.setAutoDelete( true ); | 95 | m_toDelete.setAutoDelete( true ); |
92 | m_toDelete.clear(); | 96 | m_toDelete.clear(); |
93 | m_toDelete.setAutoDelete( false ); | 97 | m_toDelete.setAutoDelete( false ); |
94 | } | 98 | } |
95 | 99 | ||
96 | void MainWindow::newConnection() { | 100 | void MainWindow::newConnection() { |
97 | IRCServerList list(this, "ServerList", TRUE); | 101 | IRCServerList list(this, "ServerList", TRUE); |
98 | if (list.exec() == QDialog::Accepted && list.hasServer()) { | 102 | if (list.exec() == QDialog::Accepted && list.hasServer()) { |
99 | IRCServerTab *serverTab = new IRCServerTab(list.server(), this, m_tabWidget); | 103 | IRCServerTab *serverTab = new IRCServerTab(list.server(), this, m_tabWidget); |