File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -995,17 +995,19 @@ int main( int argc, char *argv[] )
995
995
// TODO: use QgsSettings
996
996
QSettings *customizationsettings = nullptr ;
997
997
998
- // Using the customizationfile option always overrides the option and config path options.
999
998
if ( !customizationfile.isEmpty () )
1000
999
{
1001
- customizationsettings = new QSettings ( customizationfile, QSettings::IniFormat );
1000
+ // Using the customizationfile option always overrides the option and config path options.
1002
1001
QgsCustomization::instance ()->setEnabled ( true );
1003
1002
}
1004
1003
else
1005
1004
{
1006
- customizationsettings = new QSettings ( QStringLiteral ( " QGIS" ), QStringLiteral ( " QGISCUSTOMIZATION2" ) );
1005
+ // Use the default file location
1006
+ customizationfile = profileFolder + QDir::separator () + QStringLiteral ( " QGIS" ) + QDir::separator () + QStringLiteral ( " QGISCUSTOMIZATION3.ini" ) ;
1007
1007
}
1008
1008
1009
+ customizationsettings = new QSettings ( customizationfile, QSettings::IniFormat );
1010
+
1009
1011
// Load and set possible default customization, must be done after QgsApplication init and QgsSettings ( QCoreApplication ) init
1010
1012
QgsCustomization::instance ()->setSettings ( customizationsettings );
1011
1013
QgsCustomization::instance ()->loadDefault ();
You can’t perform that action at this time.
0 commit comments