[users] Hostname is empty if it will not be set
This commit is contained in:
parent
a12c6de2ef
commit
9299bedd7e
@ -201,7 +201,13 @@ public:
|
|||||||
QString loginNameStatus() const;
|
QString loginNameStatus() const;
|
||||||
|
|
||||||
/// The host name (name for the system)
|
/// The host name (name for the system)
|
||||||
QString hostName() const { return m_hostName; }
|
QString hostName() const
|
||||||
|
{
|
||||||
|
return ( ( hostNameAction() == HostNameAction::EtcHostname )
|
||||||
|
|| ( hostNameAction() == HostNameAction::SystemdHostname ) )
|
||||||
|
? m_hostName
|
||||||
|
: QString();
|
||||||
|
}
|
||||||
/// Status message about hostname -- empty for "ok"
|
/// Status message about hostname -- empty for "ok"
|
||||||
QString hostNameStatus() const;
|
QString hostNameStatus() const;
|
||||||
/// How to write the hostname
|
/// How to write the hostname
|
||||||
|
Loading…
Reference in New Issue
Block a user