summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.cpp
authorzecke <zecke>2004-10-16 21:06:28 (UTC)
committer zecke <zecke>2004-10-16 21:06:28 (UTC)
commit999a0f2d22f132005bde62558ace48a0ce8b1dcc (patch) (unidiff)
tree75f528b52a8a89289925e62bbd4c48d316c8ddcf /noncore/apps/opie-console/mainwindow.cpp
parente70f226f5c4c2f488f6c4406034a04e128c0ca93 (diff)
downloadopie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.zip
opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.tar.gz
opie-999a0f2d22f132005bde62558ace48a0ce8b1dcc.tar.bz2
-Remove never finished classes by ibotty for the console widget
-Put setCurrent into ComboboxHelper and remove duplication from the dialogs -Remove old and unneeded debug output -IOBt, IOIrda can share the implementation for sening,recieving and supports with IOSerial
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp7
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>
18using namespace Opie::Core;
19using namespace Opie::Ui; 17using 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
606void MainWindow::slotSessionChanged( Session* ses ) { 602void 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 );