Allow ssh port to work in bookmarks.

BUG: 173311

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=929785
This commit is contained in:
Kurt Hindenburg
2009-02-22 06:34:01 +00:00
parent 7930b1930d
commit 09a4dcdf5f

View File

@@ -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() )