Skip to content

Commit 3cdbc5a

Browse files
committed
initialize QgsApplication::mConfigPath later
1 parent b590d46 commit 3cdbc5a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/qgsapplication.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ QString ABISYM( QgsApplication::mLibraryPath );
4747
QString ABISYM( QgsApplication::mLibexecPath );
4848
QString ABISYM( QgsApplication::mThemeName );
4949
QStringList ABISYM( QgsApplication::mDefaultSvgPaths );
50-
QString ABISYM( QgsApplication::mConfigPath ) = QDir::homePath() + QString( "/.qgis/" );
50+
QString ABISYM( QgsApplication::mConfigPath );
5151
bool ABISYM( QgsApplication::mRunningFromBuildDir ) = false;
5252
QString ABISYM( QgsApplication::mBuildSourcePath );
5353
QString ABISYM( QgsApplication::mBuildOutputPath );
@@ -73,6 +73,10 @@ QgsApplication::QgsApplication( int & argc, char ** argv, bool GUIenabled, QStri
7373
}
7474
void QgsApplication::init( QString customConfigPath )
7575
{
76+
if( customConfigPath.isEmpty() )
77+
{
78+
customConfigPath = QDir::homePath() + QString( "/.qgis/" );
79+
}
7680
qRegisterMetaType<QgsGeometry::Error>( "QgsGeometry::Error" );
7781

7882
// check if QGIS is run from build directory (not the install directory)

0 commit comments

Comments
 (0)