summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp8
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
@@ -261,8 +261,12 @@ void MainWindow::slotRunScript() {
261} 261}
262 262
263void MainWindow::slotConnect() { 263void MainWindow::slotConnect() {
264 if ( currentSession() ) 264 if ( currentSession() ) {
265 currentSession()->layer()->open(); 265 bool ret = currentSession()->layer()->open();
266 if(!ret) QMessageBox::warning(currentSession()->widgetStack(),
267 QObject::tr("Failed"),
268 QObject::tr("Connecting failed for this session."));
269 }
266} 270}
267 271
268void MainWindow::slotDisconnect() { 272void MainWindow::slotDisconnect() {