Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
crssync: write settings to temporary directory (fixes #44793)
(cherry picked from commit 322ae33)
  • Loading branch information
jef-n committed Aug 23, 2021
1 parent adb5e30 commit a438bea
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;
}

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

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

Expand Down

0 comments on commit a438bea

Please sign in to comment.