author | zecke <zecke> | 2002-10-12 21:18:46 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-12 21:18:46 (UTC) |
commit | 9b33ff5f74c30a5a4905093715a6f345edee26ab (patch) (unidiff) | |
tree | eb0155744adb8c0901e27e001c7e09fc8c789369 /noncore/apps/opie-console/mainwindow.cpp | |
parent | 3eb9678dfab4d152858b7f72c7f0c057fe393541 (diff) | |
download | opie-9b33ff5f74c30a5a4905093715a6f345edee26ab.zip opie-9b33ff5f74c30a5a4905093715a6f345edee26ab.tar.gz opie-9b33ff5f74c30a5a4905093715a6f345edee26ab.tar.bz2 |
Calmed down... 2nd try after merge
Use MetaFactory cuase it's so nice and avoids thousands of if() else if
stuff
Fix a bug in filetransfer where cancel after exit leaded to a crash cause
of bogus adresses in the QSocketNotifiers..
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index fbeaa74..88727e4 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -217,17 +217,19 @@ void MainWindow::slotProfile( int id) { | |||
217 | } | 217 | } |
218 | void MainWindow::create( const Profile& prof ) { | 218 | void MainWindow::create( const Profile& prof ) { |
219 | Session *ses = manager()->fromProfile( prof, tabWidget() ); | 219 | Session *ses = manager()->fromProfile( prof, tabWidget() ); |
220 | 220 | ||
221 | m_sessions.append( ses ); | 221 | m_sessions.append( ses ); |
222 | tabWidget()->add( ses ); | 222 | tabWidget()->add( ses ); |
223 | m_curSession = ses; | 223 | m_curSession = ses; |
224 | 224 | ||
225 | } | 225 | } |
226 | 226 | ||
227 | void MainWindow::slotTransfer() | 227 | void MainWindow::slotTransfer() |
228 | { | 228 | { |
229 | if ( currentSession() ) { | ||
229 | TransferDialog dlg(this); | 230 | TransferDialog dlg(this); |
230 | dlg.showMaximized(); | 231 | dlg.showMaximized(); |
231 | dlg.exec(); | 232 | dlg.exec(); |
233 | } | ||
232 | } | 234 | } |
233 | 235 | ||