Skip to content

Commit

Permalink
Use mkpath when creating a profile directory(prevents problems when r…
Browse files Browse the repository at this point in the history
…oot directory isn't present to begin with)
  • Loading branch information
nirvn committed Dec 11, 2019
1 parent e8f377f commit f84038c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsuserprofilemanager.cpp
Expand Up @@ -142,7 +142,7 @@ QgsError QgsUserProfileManager::createUserProfile( const QString &name )
QDir folder( mRootProfilePath + QDir::separator() + name );
if ( !folder.exists() )
{
QDir().mkdir( folder.absolutePath() );
QDir().mkpath( folder.absolutePath() );
}

QFile qgisPrivateDbFile( folder.absolutePath() + QDir::separator() + "qgis.db" );
Expand Down

0 comments on commit f84038c

Please sign in to comment.