summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-10-24 12:49:24 (UTC)
committer harlekin <harlekin>2002-10-24 12:49:24 (UTC)
commit263b907b4f3bd3be7725d234ff42be86cff39ab7 (patch) (side-by-side diff)
tree2c5edaf127210e80030af54122c55ab836dac4d2
parentc2a6bda0c89ee3ac97323108f0eec80b658a3995 (diff)
downloadopie-263b907b4f3bd3be7725d234ff42be86cff39ab7.zip
opie-263b907b4f3bd3be7725d234ff42be86cff39ab7.tar.gz
opie-263b907b4f3bd3be7725d234ff42be86cff39ab7.tar.bz2
de- /activate file transfer menu entry according to layer capabilities
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp29
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
@@ -183,20 +183,4 @@ void MainWindow::initUI() {
m_openKeys->addTo(m_icons);
-
- /*
- * 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 */
m_console->insertItem(tr("New from Profile"), m_sessionsPop,
@@ -353,4 +337,5 @@ void MainWindow::slotConnect() {
m_connect->setEnabled( false );
m_disconnect->setEnabled( true );
+ m_transfer->setEnabled( true );
}
}
@@ -362,4 +347,5 @@ void MainWindow::slotDisconnect() {
m_connect->setEnabled( true );
m_disconnect->setEnabled( false );
+ m_transfer->setEnabled( false );
}
}
@@ -448,5 +434,4 @@ void MainWindow::create( const Profile& prof ) {
m_disconnect->setEnabled( false );
m_terminate->setEnabled( true );
- m_transfer->setEnabled( true );
m_recordScript->setEnabled( true );
m_saveScript->setEnabled( true );
@@ -454,5 +439,5 @@ void MainWindow::create( const Profile& prof ) {
m_fullscreen->setEnabled( true );
m_closewindow->setEnabled( true );
-
+ m_transfer->setEnabled( false );
// is io_layer wants direct connection, then autoconnect
@@ -462,4 +447,6 @@ void MainWindow::create( const Profile& prof ) {
}
+
+
QWidget *w = currentSession()->widget();
if(w) w->setFocus();
@@ -509,4 +496,10 @@ 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();
if(w) w->setFocus();