[users] Imporove enum-naming

main
Adriaan de Groot 5 years ago
parent e74831fcb4
commit 49eb8212e3

@ -137,7 +137,7 @@ SetHostNameJob::exec()
} }
} }
if ( m_actions & Action::EtcHosts ) if ( m_actions & Action::WriteEtcHosts )
{ {
if ( !writeFileEtcHosts( m_hostname ) ) if ( !writeFileEtcHosts( m_hostname ) )
{ {

@ -31,7 +31,7 @@ public:
None = 0x0, None = 0x0,
EtcHostname = 0x1, // Write to /etc/hostname directly EtcHostname = 0x1, // Write to /etc/hostname directly
SystemdHostname = 0x2, // Set via hostnamed(1) SystemdHostname = 0x2, // Set via hostnamed(1)
EtcHosts = 0x4 // Write /etc/hosts (127.0.1.1 is this host) WriteEtcHosts = 0x4 // Write /etc/hosts (127.0.1.1 is this host)
}; };
Q_DECLARE_FLAGS( Actions, Action ) Q_DECLARE_FLAGS( Actions, Action )

@ -220,6 +220,6 @@ UsersViewStep::setConfigurationMap( const QVariantMap& configurationMap )
hostnameAction = Action::EtcHostname; hostnameAction = Action::EtcHostname;
} }
Action hostsfileAction = getBool( configurationMap, "writeHostsFile", true ) ? Action::EtcHosts : Action::None; Action hostsfileAction = getBool( configurationMap, "writeHostsFile", true ) ? Action::WriteEtcHosts : Action::None;
m_actions = hostsfileAction | hostnameAction; m_actions = hostsfileAction | hostnameAction;
} }

Loading…
Cancel
Save