From 5dff256613b763288817ec24e7b9fad2c2acb10d Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Fri, 26 Mar 2021 11:09:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=B2=D0=BE=D0=B7=D0=B2=D1=80=D0=B0=D1=89?= =?UTF-8?q?=D0=B0=D0=B5=D0=BC=D0=BE=D0=B5=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/myx/filesystem/paths.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/myx/filesystem/paths.cpp b/src/myx/filesystem/paths.cpp index 2a6ea5c..a8f2637 100644 --- a/src/myx/filesystem/paths.cpp +++ b/src/myx/filesystem/paths.cpp @@ -241,10 +241,10 @@ MYXLIB_INLINE bool Paths::makeDefaultSystemDirectories() bool status = true; QDir dir; - if ( dir.mkpath( m_systemConfigDirectory ) ) { status = false; } - if ( dir.mkpath( m_systemVarDataDirectory ) ) { status = false; } - if ( dir.mkpath( m_systemConstDataDirectory ) ) { status = false; } - if ( dir.mkpath( m_systemLogDirectory ) ) { status = false; } + if ( !dir.mkpath( m_systemConfigDirectory ) ) { status = false; } + if ( !dir.mkpath( m_systemVarDataDirectory ) ) { status = false; } + if ( !dir.mkpath( m_systemConstDataDirectory ) ) { status = false; } + if ( !dir.mkpath( m_systemLogDirectory ) ) { status = false; } return( status ); } @@ -255,10 +255,10 @@ MYXLIB_INLINE bool Paths::makeDefaultUserDirectories() bool status = true; QDir dir; - if ( dir.mkpath( m_userConfigDirectory ) ) { status = false; } - if ( dir.mkpath( m_userVarDataDirectory ) ) { status = false; } - if ( dir.mkpath( m_userConstDataDirectory ) ) { status = false; } - if ( dir.mkpath( m_userLogDirectory ) ) { status = false; } + if ( !dir.mkpath( m_userConfigDirectory ) ) { status = false; } + if ( !dir.mkpath( m_userVarDataDirectory ) ) { status = false; } + if ( !dir.mkpath( m_userConstDataDirectory ) ) { status = false; } + if ( !dir.mkpath( m_userLogDirectory ) ) { status = false; } return( status ); }