Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Konsole
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
23
Merge Requests
23
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Utilities
Konsole
Commits
cf06fa08
Commit
cf06fa08
authored
Mar 31, 2017
by
Kurt Hindenburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rearrange code placment to keep related items together
parent
a8c3dd0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
src/ProcessInfo.cpp
src/ProcessInfo.cpp
+6
-9
No files found.
src/ProcessInfo.cpp
View file @
cf06fa08
...
...
@@ -1071,15 +1071,6 @@ QString SSHProcessInfo::format(const QString& input) const
{
QString
output
(
input
);
// test whether host is an ip address
// in which case 'short host' and 'full host'
// markers in the input string are replaced with
// the full address
bool
isIpAddress
=
false
;
struct
in_addr
address
;
isIpAddress
=
inet_aton
(
_host
.
toLocal8Bit
().
constData
(),
&
address
)
!=
0
;
// search for and replace known markers
output
.
replace
(
QLatin1String
(
"%u"
),
_user
);
...
...
@@ -1093,6 +1084,12 @@ QString SSHProcessInfo::format(const QString& input) const
else
output
.
replace
(
QLatin1String
(
"%U"
),
_user
+
'@'
);
// test whether host is an ip address
// in which case 'short host' and 'full host'
// markers in the input string are replaced with
// the full address
struct
in_addr
address
;
const
bool
isIpAddress
=
inet_aton
(
_host
.
toLocal8Bit
().
constData
(),
&
address
)
!=
0
;
if
(
isIpAddress
)
output
.
replace
(
QLatin1String
(
"%h"
),
_host
);
else
...
...
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