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 ); }