Skip to content
Permalink
Browse files

initialize QgsApplication::mConfigPath later

  • Loading branch information
jef-n committed Feb 7, 2012
1 parent b590d46 commit 3cdbc5acf3f726733f8292723fe79e0246602e1f
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/core/qgsapplication.cpp
@@ -47,7 +47,7 @@ QString ABISYM( QgsApplication::mLibraryPath );
QString ABISYM( QgsApplication::mLibexecPath );
QString ABISYM( QgsApplication::mThemeName );
QStringList ABISYM( QgsApplication::mDefaultSvgPaths );
QString ABISYM( QgsApplication::mConfigPath ) = QDir::homePath() + QString( "/.qgis/" );
QString ABISYM( QgsApplication::mConfigPath );
bool ABISYM( QgsApplication::mRunningFromBuildDir ) = false;
QString ABISYM( QgsApplication::mBuildSourcePath );
QString ABISYM( QgsApplication::mBuildOutputPath );
@@ -73,6 +73,10 @@ QgsApplication::QgsApplication( int & argc, char ** argv, bool GUIenabled, QStri
}
void QgsApplication::init( QString customConfigPath )
{
if( customConfigPath.isEmpty() )
{
customConfigPath = QDir::homePath() + QString( "/.qgis/" );
}
qRegisterMetaType<QgsGeometry::Error>( "QgsGeometry::Error" );

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

0 comments on commit 3cdbc5a

Please sign in to comment.
You can’t perform that action at this time.