summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-10-26 11:53:47 (UTC)
committer harlekin <harlekin>2002-10-26 11:53:47 (UTC)
commit88504fa6ed3e4ec1c11d3e1cde13c821b1a9b846 (patch) (side-by-side diff)
treeb3acc8683f44c7fa960c4d422ae781ed7b854f65
parent2dc92ada34785bbfff8ca1202e4d53eb0606c362 (diff)
downloadopie-88504fa6ed3e4ec1c11d3e1cde13c821b1a9b846.zip
opie-88504fa6ed3e4ec1c11d3e1cde13c821b1a9b846.tar.gz
opie-88504fa6ed3e4ec1c11d3e1cde13c821b1a9b846.tar.bz2
only enable tranfer if layer supports it
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index 5f6dc12..e3c3c38 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -452,3 +452,10 @@ void MainWindow::slotConnect() {
m_disconnect->setEnabled( true );
+
+ // if it does not support file transfer, disable the menu entry
+ if ( ( m_curSession->layer() )->supports()[1] == 0 ) {
+ m_transfer->setEnabled( false );
+ } else {
m_transfer->setEnabled( true );
+ }
+
m_recordScript->setEnabled( true );
@@ -573,3 +580,2 @@ void MainWindow::create( const Profile& prof ) {
-
QWidget *w = currentSession()->widget();