Skip to content

Commit

Permalink
Fix translation test init QgsApplication once only
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and strk committed Apr 1, 2020
1 parent 7f0d5de commit a57b827
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/src/core/testqgstranslateproject.cpp
Expand Up @@ -52,16 +52,12 @@ class TestQgsTranslateProject : public QObject
void TestQgsTranslateProject::initTestCase()
{
//start application
QgsApplication::init();
QgsApplication::initQgis();

original_locale = settings.value( QStringLiteral( "locale/userLocale" ), "" ).toString() ;
}

void TestQgsTranslateProject::cleanupTestCase()
{
settings.setValue( QStringLiteral( "locale/userLocale" ), original_locale );
QgsApplication::exitQgis();

//delete translated project file
QString translatedProjectFileName( TEST_DATA_DIR );
Expand Down

0 comments on commit a57b827

Please sign in to comment.