Исправлено возвращаемое значение
This commit is contained in:
parent
668af95136
commit
5dff256613
@ -241,10 +241,10 @@ MYXLIB_INLINE bool Paths::makeDefaultSystemDirectories()
|
|||||||
bool status = true;
|
bool status = true;
|
||||||
QDir dir;
|
QDir dir;
|
||||||
|
|
||||||
if ( dir.mkpath( m_systemConfigDirectory ) ) { status = false; }
|
if ( !dir.mkpath( m_systemConfigDirectory ) ) { status = false; }
|
||||||
if ( dir.mkpath( m_systemVarDataDirectory ) ) { status = false; }
|
if ( !dir.mkpath( m_systemVarDataDirectory ) ) { status = false; }
|
||||||
if ( dir.mkpath( m_systemConstDataDirectory ) ) { status = false; }
|
if ( !dir.mkpath( m_systemConstDataDirectory ) ) { status = false; }
|
||||||
if ( dir.mkpath( m_systemLogDirectory ) ) { status = false; }
|
if ( !dir.mkpath( m_systemLogDirectory ) ) { status = false; }
|
||||||
|
|
||||||
return( status );
|
return( status );
|
||||||
}
|
}
|
||||||
@ -255,10 +255,10 @@ MYXLIB_INLINE bool Paths::makeDefaultUserDirectories()
|
|||||||
bool status = true;
|
bool status = true;
|
||||||
QDir dir;
|
QDir dir;
|
||||||
|
|
||||||
if ( dir.mkpath( m_userConfigDirectory ) ) { status = false; }
|
if ( !dir.mkpath( m_userConfigDirectory ) ) { status = false; }
|
||||||
if ( dir.mkpath( m_userVarDataDirectory ) ) { status = false; }
|
if ( !dir.mkpath( m_userVarDataDirectory ) ) { status = false; }
|
||||||
if ( dir.mkpath( m_userConstDataDirectory ) ) { status = false; }
|
if ( !dir.mkpath( m_userConstDataDirectory ) ) { status = false; }
|
||||||
if ( dir.mkpath( m_userLogDirectory ) ) { status = false; }
|
if ( !dir.mkpath( m_userLogDirectory ) ) { status = false; }
|
||||||
|
|
||||||
return( status );
|
return( status );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user