Правка для Смоленск 1.5

This commit is contained in:
Andrei Astafev 2020-04-09 22:44:31 +03:00
parent e160b83c45
commit 2901c5c04e

View File

@ -126,7 +126,7 @@ bool Paths::init( const QString& projectDir, const QString& configFileExtension
m_homeDirectory = QString::fromLocal8Bit( qgetenv( "HOME" ) );
m_tempDirectory = QString::fromLocal8Bit( qgetenv( "TMPDIR" ) );
if ( m_tempDirectory.isEmpty() || ( m_tempDirectory.path() == QStringLiteral( "." ) ) )
if ( !m_tempDirectory.exists() || ( m_tempDirectory.path() == QStringLiteral( "." ) ) )
{
m_tempDirectory = QStringLiteral( _PATH_TMP );
}