From 88504fa6ed3e4ec1c11d3e1cde13c821b1a9b846 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sat, 26 Oct 2002 11:53:47 +0000 Subject: only enable tranfer if layer supports it --- (limited to 'noncore/apps/opie-console/mainwindow.cpp') 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 @@ -450,7 +450,14 @@ void MainWindow::slotConnect() { else { m_connect->setEnabled( false ); m_disconnect->setEnabled( true ); - m_transfer->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 ); m_scripts->setItemEnabled(m_runScript_id, true); } @@ -571,7 +578,6 @@ void MainWindow::create( const Profile& prof ) { } - QWidget *w = currentSession()->widget(); if(w) w->setFocus(); -- cgit v0.9.0.2