From 2901c5c04e6bd60c32aea15596508526dd09683b Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 9 Apr 2020 22:44:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=A1=D0=BC=D0=BE=D0=BB=D0=B5=D0=BD=D1=81=D0=BA?= =?UTF-8?q?=201.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/myx/filesystem/paths.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/myx/filesystem/paths.cpp b/src/myx/filesystem/paths.cpp index d20f39d..61cee87 100644 --- a/src/myx/filesystem/paths.cpp +++ b/src/myx/filesystem/paths.cpp @@ -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 ); }