mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
Fix 'Unset' option for custom environmental variables
This commit is contained in:
parent
8914ff52ba
commit
661d0404c6
@ -1302,7 +1302,7 @@ int main( int argc, char *argv[] )
|
||||
if ( systemEnvVars.contains( envVarName ) && envVarApply == QLatin1String( "unset" ) )
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
putenv( envVarName.toUtf8().constData() );
|
||||
putenv( QString( "%1=" ).arg( envVarName ).toUtf8().constData() );
|
||||
#else
|
||||
unsetenv( envVarName.toUtf8().constData() );
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user