-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 ) { | |||
435 | if (prof.autoConnect()) { | 435 | if (prof.autoConnect()) { |
436 | slotConnect(); | 436 | slotConnect(); |
437 | } | 437 | } |
438 | |||
439 | QWidget *w = currentSession()->widget(); | ||
440 | if(w) w->setFocus(); | ||
438 | } | 441 | } |
439 | 442 | ||
440 | void MainWindow::slotTransfer() | 443 | void MainWindow::slotTransfer() |
@@ -479,6 +482,9 @@ void MainWindow::slotSessionChanged( Session* ses ) { | |||
479 | m_connect->setEnabled( true ); | 482 | m_connect->setEnabled( true ); |
480 | m_disconnect->setEnabled( false ); | 483 | m_disconnect->setEnabled( false ); |
481 | } | 484 | } |
485 | |||
486 | QWidget *w = m_curSession->widget(); | ||
487 | if(w) w->setFocus(); | ||
482 | } | 488 | } |
483 | } | 489 | } |
484 | 490 | ||