mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
kdontchangethehostname: home does not have to be a member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
c94db85beb
commit
cc544eb6ef
1 changed files with 1 additions and 2 deletions
|
@ -53,7 +53,6 @@ protected:
|
|||
QString oldName;
|
||||
QString newName;
|
||||
QString display;
|
||||
QByteArray home;
|
||||
};
|
||||
|
||||
KHostName::KHostName()
|
||||
|
@ -66,7 +65,7 @@ KHostName::KHostName()
|
|||
if (oldName == newName)
|
||||
exit(0);
|
||||
|
||||
home = qgetenv("HOME");
|
||||
const QByteArray home = qgetenv("HOME");
|
||||
if (home.isEmpty())
|
||||
{
|
||||
fprintf(stderr, "%s", i18n("Error: HOME environment variable not set.\n").toLocal8Bit().data());
|
||||
|
|
Loading…
Add table
Reference in a new issue