From 481d98eabc371d473fef7c640a710c5535637750 Mon Sep 17 00:00:00 2001 From: josef Date: Mon, 14 Oct 2002 18:36:44 +0000 Subject: - display warning if connection cannot be established --- 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 @@ -261,8 +261,12 @@ 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() { -- cgit v0.9.0.2