-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 02f8451..b143361 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -260,10 +260,14 @@ void MainWindow::slotRunScript() { */ } void MainWindow::slotConnect() { - if ( currentSession() ) - currentSession()->layer()->open(); + if ( currentSession() ) { + bool ret = currentSession()->layer()->open(); + if(!ret) QMessageBox::warning(currentSession()->widgetStack(), + QObject::tr("Failed"), + QObject::tr("Connecting failed for this session.")); + } } void MainWindow::slotDisconnect() { if ( currentSession() ) |