[users] Don't set GS hostname if hostname.location is None
This commit is contained in:
parent
c5c546d290
commit
a12c6de2ef
@ -240,6 +240,11 @@ Config::loginNameStatus() const
|
||||
void
|
||||
Config::setHostName( const QString& host )
|
||||
{
|
||||
if ( hostNameAction() != HostNameAction::EtcHostname && hostNameAction() != HostNameAction::SystemdHostname )
|
||||
{
|
||||
cDebug() << "Ignoring hostname" << host << "No hostname will be set.";
|
||||
return;
|
||||
}
|
||||
if ( host != m_hostName )
|
||||
{
|
||||
m_customHostName = !host.isEmpty();
|
||||
|
Loading…
Reference in New Issue
Block a user