From c01fc99488d4ff9e1de2eb4d93fc200ed8e19a81 Mon Sep 17 00:00:00 2001 From: josef Date: Fri, 18 Oct 2002 09:43:59 +0000 Subject: - autoconnect after setting default values, otherwise connect/disconnect menu items are overwritten Please review! --- (limited to 'noncore') 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 @@ -421,11 +421,6 @@ void MainWindow::create( const Profile& prof ) { 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 ); @@ -436,6 +431,12 @@ void MainWindow::create( const Profile& prof ) { 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() -- cgit v0.9.0.2