Fix build on Windows.
--HG-- branch : release
This commit is contained in:
parent
e7a4935983
commit
a7b721941a
|
@ -422,7 +422,7 @@ QString VCommonSettings::GetUser() const
|
||||||
{
|
{
|
||||||
QString user;
|
QString user;
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
user = value(SettingPatternUser, QString::fromLocal8Bit(qgetenv("USERNAME").constData())).toString();
|
user = value(settingPatternUser, QString::fromLocal8Bit(qgetenv("USERNAME").constData())).toString();
|
||||||
#else
|
#else
|
||||||
user = value(settingPatternUser, QString::fromLocal8Bit(qgetenv("USER").constData())).toString();
|
user = value(settingPatternUser, QString::fromLocal8Bit(qgetenv("USER").constData())).toString();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user