Fix build on Windows.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2017-04-14 17:47:39 +03:00
parent e7a4935983
commit a7b721941a

View File

@ -422,7 +422,7 @@ QString VCommonSettings::GetUser() const
{
QString user;
#ifdef Q_OS_WIN
user = value(SettingPatternUser, QString::fromLocal8Bit(qgetenv("USERNAME").constData())).toString();
user = value(settingPatternUser, QString::fromLocal8Bit(qgetenv("USERNAME").constData())).toString();
#else
user = value(settingPatternUser, QString::fromLocal8Bit(qgetenv("USER").constData())).toString();
#endif