-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 49f9653..afac542 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -435,6 +435,9 @@ void MainWindow::create( const Profile& prof ) { if (prof.autoConnect()) { slotConnect(); } + + QWidget *w = currentSession()->widget(); + if(w) w->setFocus(); } void MainWindow::slotTransfer() @@ -479,6 +482,9 @@ void MainWindow::slotSessionChanged( Session* ses ) { m_connect->setEnabled( true ); m_disconnect->setEnabled( false ); } + + QWidget *w = m_curSession->widget(); + if(w) w->setFocus(); } } |