File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -507,6 +507,11 @@ int main( int argc, char *argv[] )
507
507
508
508
if ( !optionpath.isEmpty () || !configpath.isEmpty () )
509
509
{
510
+ #ifdef Q_WS_WIN
511
+ // replace backslashes with forward slashes
512
+ configpath.replace ( " \\ " , " /" );
513
+ optionpath.replace ( " \\ " , " /" );
514
+ #endif
510
515
// tell QSettings to use INI format and save the file in custom config path
511
516
QSettings::setDefaultFormat ( QSettings::IniFormat );
512
517
QSettings::setPath ( QSettings::IniFormat, QSettings::UserScope, optionpath.isEmpty () ? configpath : optionpath );
@@ -532,6 +537,11 @@ int main( int argc, char *argv[] )
532
537
QSettings* customizationsettings;
533
538
if ( !optionpath.isEmpty () || !configpath.isEmpty () )
534
539
{
540
+ #ifdef Q_WS_WIN
541
+ // replace backslashes with forward slashes
542
+ configpath.replace ( " \\ " , " /" );
543
+ optionpath.replace ( " \\ " , " /" );
544
+ #endif
535
545
// tell QSettings to use INI format and save the file in custom config path
536
546
QSettings::setDefaultFormat ( QSettings::IniFormat );
537
547
QString path = optionpath.isEmpty () ? configpath : optionpath;
You can’t perform that action at this time.
0 commit comments