Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 291912c..b3cb208 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -12,10 +12,8 @@ | |||
12 | #include "fixit.h" | 12 | #include "fixit.h" |
13 | 13 | ||
14 | /* OPIE */ | 14 | /* OPIE */ |
15 | #include <opie2/odebug.h> | ||
16 | #include <opie2/ofiledialog.h> | 15 | #include <opie2/ofiledialog.h> |
17 | #include <qpe/filemanager.h> | 16 | #include <qpe/filemanager.h> |
18 | using namespace Opie::Core; | ||
19 | using namespace Opie::Ui; | 17 | using namespace Opie::Ui; |
20 | 18 | ||
21 | /* QT */ | 19 | /* QT */ |
@@ -481,13 +479,11 @@ void MainWindow::slotClose() { | |||
481 | return; | 479 | return; |
482 | 480 | ||
483 | Session* ses = currentSession(); | 481 | Session* ses = currentSession(); |
484 | owarn << "removing! currentSession " << currentSession()->name().latin1() << "" << oendl; | ||
485 | /* set to NULL to be safe, if its needed slotSessionChanged resets it automatically */ | 482 | /* set to NULL to be safe, if its needed slotSessionChanged resets it automatically */ |
486 | m_curSession = NULL; | 483 | m_curSession = NULL; |
487 | tabWidget()->remove( /*currentSession()*/ses ); | 484 | tabWidget()->remove( /*currentSession()*/ses ); |
488 | /*it's autodelete */ | 485 | /*it's autodelete */ |
489 | m_sessions.remove( ses ); | 486 | m_sessions.remove( ses ); |
490 | owarn << "after remove!!" << oendl; | ||
491 | 487 | ||
492 | if (!currentSession() ) { | 488 | if (!currentSession() ) { |
493 | m_connect->setEnabled( false ); | 489 | m_connect->setEnabled( false ); |
@@ -604,8 +600,6 @@ void MainWindow::slotOpenButtons( bool state ) { | |||
604 | 600 | ||
605 | 601 | ||
606 | void MainWindow::slotSessionChanged( Session* ses ) { | 602 | void MainWindow::slotSessionChanged( Session* ses ) { |
607 | owarn << "changed!" << oendl; | ||
608 | |||
609 | if(m_curSession) | 603 | if(m_curSession) |
610 | if(m_curSession->transferDialog()) m_curSession->transferDialog()->hide(); | 604 | if(m_curSession->transferDialog()) m_curSession->transferDialog()->hide(); |
611 | if(ses) | 605 | if(ses) |
@@ -613,7 +607,6 @@ void MainWindow::slotSessionChanged( Session* ses ) { | |||
613 | 607 | ||
614 | if ( ses ) { | 608 | if ( ses ) { |
615 | m_curSession = ses; | 609 | m_curSession = ses; |
616 | odebug << QString("is connected : %1").arg( m_curSession->layer()->isConnected() ) << oendl; | ||
617 | if ( m_curSession->layer()->isConnected() ) { | 610 | if ( m_curSession->layer()->isConnected() ) { |
618 | m_connect->setEnabled( false ); | 611 | m_connect->setEnabled( false ); |
619 | m_disconnect->setEnabled( true ); | 612 | m_disconnect->setEnabled( true ); |