Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
libksysguard
Commits
b96b18c4
Commit
b96b18c4
authored
Jul 03, 2020
by
Arjen Hiemstra
Browse files
Only prefix SensorProperty when it's not empty
Otherwise we end up with all sensor names being prefix with a space.
parent
1e3fe8a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
systemstats/SensorProperty.cpp
View file @
b96b18c4
...
...
@@ -68,7 +68,7 @@ void SensorProperty::setName(const QString &name)
}
m_name
=
name
;
m_info
.
name
=
m_prefix
%
QLatin1Char
(
' '
)
%
m_name
;
m_info
.
name
=
m_prefix
.
isEmpty
()
?
m_name
:
m_prefix
%
QLatin1Char
(
' '
)
%
m_name
;
emit
sensorInfoChanged
();
}
...
...
@@ -89,7 +89,7 @@ void SensorProperty::setPrefix(const QString &prefix)
}
m_prefix
=
prefix
;
m_info
.
name
=
prefix
%
QLatin1Char
(
' '
)
%
m_name
;
m_info
.
name
=
prefix
.
isEmpty
()
?
m_name
:
prefix
%
QLatin1Char
(
' '
)
%
m_name
;
emit
sensorInfoChanged
();
}
...
...
Write
Preview
Supports
Markdown
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