mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +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 oldName;
|
||||||
QString newName;
|
QString newName;
|
||||||
QString display;
|
QString display;
|
||||||
QByteArray home;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
KHostName::KHostName()
|
KHostName::KHostName()
|
||||||
|
@ -66,7 +65,7 @@ KHostName::KHostName()
|
||||||
if (oldName == newName)
|
if (oldName == newName)
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
home = qgetenv("HOME");
|
const QByteArray home = qgetenv("HOME");
|
||||||
if (home.isEmpty())
|
if (home.isEmpty())
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s", i18n("Error: HOME environment variable not set.\n").toLocal8Bit().data());
|
fprintf(stderr, "%s", i18n("Error: HOME environment variable not set.\n").toLocal8Bit().data());
|
||||||
|
|
Loading…
Add table
Reference in a new issue