Skip to content
Permalink
Browse files
Fix #6764
  • Loading branch information
NathanW2 committed Nov 28, 2012
1 parent 02a26ca commit e97afe0997e325c96d432a79d55e49de9304e33b
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/app/main.cpp
@@ -507,6 +507,11 @@ int main( int argc, char *argv[] )

if ( !optionpath.isEmpty() || !configpath.isEmpty() )
{
#ifdef Q_WS_WIN
//replace backslashes with forward slashes
configpath.replace( "\\", "/" );
optionpath.replace( "\\", "/" );
#endif
// tell QSettings to use INI format and save the file in custom config path
QSettings::setDefaultFormat( QSettings::IniFormat );
QSettings::setPath( QSettings::IniFormat, QSettings::UserScope, optionpath.isEmpty() ? configpath : optionpath );
@@ -532,6 +537,11 @@ int main( int argc, char *argv[] )
QSettings* customizationsettings;
if ( !optionpath.isEmpty() || !configpath.isEmpty() )
{
#ifdef Q_WS_WIN
//replace backslashes with forward slashes
configpath.replace( "\\", "/" );
optionpath.replace( "\\", "/" );
#endif
// tell QSettings to use INI format and save the file in custom config path
QSettings::setDefaultFormat( QSettings::IniFormat );
QString path = optionpath.isEmpty() ? configpath : optionpath;

0 comments on commit e97afe0

Please sign in to comment.