File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -315,6 +315,7 @@ int main( int argc, char *argv[] )
315
315
}
316
316
else if ( i + 1 < argc && ( arg == " --optionspath" || arg == " -o" ) )
317
317
{
318
+ QSettings::setDefaultFormat ( QSettings::IniFormat );
318
319
QSettings::setPath ( QSettings::IniFormat, QSettings::UserScope, argv[++i] );
319
320
}
320
321
else if ( i + 1 < argc && ( arg == " --configpath" || arg == " -c" ) )
@@ -417,6 +418,7 @@ int main( int argc, char *argv[] )
417
418
break ;
418
419
419
420
case ' o' :
421
+ QSettings::setDefaultFormat ( QSettings::IniFormat );
420
422
QSettings::setPath ( QSettings::IniFormat, QSettings::UserScope, optarg );
421
423
break ;
422
424
@@ -479,6 +481,7 @@ int main( int argc, char *argv[] )
479
481
if ( !configpath.isEmpty () )
480
482
{
481
483
// tell QSettings to use INI format and save the file in custom config path
484
+ QSettings::setDefaultFormat ( QSettings::IniFormat );
482
485
QSettings::setPath ( QSettings::IniFormat, QSettings::UserScope, configpath );
483
486
}
484
487
You can’t perform that action at this time.
0 commit comments