Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
crssync: write settings to temporary directory (fixes #44793)
  • Loading branch information
jef-n committed Aug 23, 2021
1 parent 48b0d62 commit 8b2a336
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/crssync/main.cpp
Expand Up @@ -51,6 +51,10 @@ int main( int argc, char **argv )
verbose = true;
}

const QTemporaryDir stemp;
QSettings::setDefaultFormat( QSettings::IniFormat );
QSettings::setPath( QSettings::IniFormat, QSettings::UserScope, stemp.path() );

const QTemporaryDir temp;
QgsApplication::init( temp.path() );

Expand Down

0 comments on commit 8b2a336

Please sign in to comment.