From 09a4dcdf5f0661c8285407a6bb8bfa9ed17546e4 Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Sun, 22 Feb 2009 06:34:01 +0000 Subject: [PATCH] Allow ssh port to work in bookmarks. BUG: 173311 svn path=/trunk/KDE/kdebase/apps/konsole/; revision=929785 --- src/SessionController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SessionController.cpp b/src/SessionController.cpp index 4b9aa373c..d47ca100b 100644 --- a/src/SessionController.cpp +++ b/src/SessionController.cpp @@ -244,6 +244,8 @@ void SessionController::openUrl( const KUrl& url ) { _session->emulation()->sendText("ssh "); + if ( url.port() > -1 ) + _session->emulation()->sendText("-p " + QString::number(url.port()) + ' ' ); if ( url.hasUser() ) _session->emulation()->sendText(url.user() + '@'); if ( url.hasHost() )