author | josef <josef> | 2002-10-18 09:43:59 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-18 09:43:59 (UTC) |
commit | c01fc99488d4ff9e1de2eb4d93fc200ed8e19a81 (patch) (side-by-side diff) | |
tree | cabcb28b9b95c741dd15ddeb016d1ebf01cf9224 | |
parent | 997c466fd91843699280a770cbf34e6917dcee8a (diff) | |
download | opie-c01fc99488d4ff9e1de2eb4d93fc200ed8e19a81.zip opie-c01fc99488d4ff9e1de2eb4d93fc200ed8e19a81.tar.gz opie-c01fc99488d4ff9e1de2eb4d93fc200ed8e19a81.tar.bz2 |
- autoconnect after setting default values, otherwise connect/disconnect menu
items are overwritten
Please review!
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index b813442..9a226bb 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -420,13 +420,8 @@ void MainWindow::create( const Profile& prof ) { m_sessions.append( ses ); tabWidget()->add( ses ); m_curSession = ses; - // is io_layer wants direct connection, then autoconnect - if ( ( m_curSession->layer() )->supports()[0] = 1 ) { - slotConnect(); - } - // dicide if its a local term ( then no connction and no tranfer), maybe make a wrapper method out of it m_connect->setEnabled( true ); m_disconnect->setEnabled( false ); m_terminate->setEnabled( true ); @@ -435,8 +430,14 @@ void MainWindow::create( const Profile& prof ) { m_saveScript->setEnabled( true ); m_runScript->setEnabled( true ); m_fullscreen->setEnabled( true ); m_closewindow->setEnabled( true ); + + + // is io_layer wants direct connection, then autoconnect + if ( ( m_curSession->layer() )->supports()[0] = 1 ) { + slotConnect(); + } } void MainWindow::slotTransfer() { |