Commit 4c416c9c authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Allow telnet:// to work for bookmarks.

BUG: 173212

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=956374
parent 246782fe
...@@ -251,6 +251,18 @@ void SessionController::openUrl( const KUrl& url ) ...@@ -251,6 +251,18 @@ void SessionController::openUrl( const KUrl& url )
if ( url.hasHost() ) if ( url.hasHost() )
_session->emulation()->sendText(url.host() + '\r'); _session->emulation()->sendText(url.host() + '\r');
} }
else if ( url.protocol() == "telnet" )
{
_session->emulation()->sendText("telnet ");
if ( url.hasUser() )
_session->emulation()->sendText("-l " + url.user() + ' ');
if ( url.hasHost() )
_session->emulation()->sendText(url.host() + ' ');
if ( url.port() > -1 )
_session->emulation()->sendText(QString::number(url.port()));
_session->emulation()->sendText("\r");
}
else else
{ {
//TODO Implement handling for other Url types //TODO Implement handling for other Url types
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment