Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Konsole
Commits
4c416c9c
Commit
4c416c9c
authored
Apr 19, 2009
by
Kurt Hindenburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow telnet:// to work for bookmarks.
BUG: 173212 svn path=/trunk/KDE/kdebase/apps/konsole/; revision=956374
parent
246782fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/SessionController.cpp
src/SessionController.cpp
+12
-0
No files found.
src/SessionController.cpp
View file @
4c416c9c
...
...
@@ -251,6 +251,18 @@ void SessionController::openUrl( const KUrl& url )
if
(
url
.
hasHost
()
)
_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
{
//TODO Implement handling for other Url types
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment