-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index ddaaf1b..c7750be 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -184,18 +184,2 @@ void MainWindow::initUI() { - - /* - * action that open/closes the keyboard - - m_openButtons = new QAction ( tr( "Open Buttons..." ), - Resource::loadPixmap( "" ), - QString::null, 0, this, 0 ); - - m_openButtons->setToggleAction( true ); - - connect ( m_openButtons, SIGNAL( toggled( bool ) ), - this, SLOT( slotOpenButtons( bool ) ) ); - m_openButtons->addTo( m_icons ); - - */ - /* insert the submenu */ @@ -354,2 +338,3 @@ void MainWindow::slotConnect() { m_disconnect->setEnabled( true ); + m_transfer->setEnabled( true ); } @@ -363,2 +348,3 @@ void MainWindow::slotDisconnect() { m_disconnect->setEnabled( false ); + m_transfer->setEnabled( false ); } @@ -449,3 +435,2 @@ void MainWindow::create( const Profile& prof ) { m_terminate->setEnabled( true ); - m_transfer->setEnabled( true ); m_recordScript->setEnabled( true ); @@ -455,3 +440,3 @@ void MainWindow::create( const Profile& prof ) { m_closewindow->setEnabled( true ); - + m_transfer->setEnabled( false ); @@ -463,2 +448,4 @@ void MainWindow::create( const Profile& prof ) { + + QWidget *w = currentSession()->widget(); @@ -510,2 +497,8 @@ void MainWindow::slotSessionChanged( Session* ses ) { + if ( ( m_curSession->layer() )->supports()[1] == 0 ) { + m_transfer->setEnabled( false ); + } else { + m_transfer->setEnabled( true ); + } + QWidget *w = m_curSession->widget(); |