mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix #6764
This commit is contained in:
parent
02a26cabe8
commit
e97afe0997
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user