Skip to content

Commit

Permalink
crssync: put profile to temporary directory (fixes #33743)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Jan 14, 2020
1 parent 1751d8e commit db8073b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/crssync/main.cpp
Expand Up @@ -20,6 +20,7 @@
#include "qgsconfig.h"

#include <QRegExp>
#include <QTemporaryDir>

#include <iostream>
#include <limits>
Expand Down Expand Up @@ -50,7 +51,8 @@ int main( int argc, char **argv )
verbose = true;
}

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

if ( !QgsApplication::isRunningFromBuildDir() )
{
Expand Down

0 comments on commit db8073b

Please sign in to comment.