Skip to content
Permalink
Browse files
crssync: write settings to temporary directory (fixes #44793)
(cherry picked from commit 8b2a336)
  • Loading branch information
jef-n committed Aug 23, 2021
1 parent 0cbf816 commit 322ae339244294eaf54fbe065de1a0ae7c9dcaa4
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/crssync/main.cpp
@@ -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() );

0 comments on commit 322ae33

Please sign in to comment.