Skip to content

Commit

Permalink
Revert "Fix translation test init QgsApplication once only"
Browse files Browse the repository at this point in the history
This reverts commit a57b827.
  • Loading branch information
nyalldawson committed Apr 1, 2020
1 parent c0d2687 commit d002d58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/core/testqgstranslateproject.cpp
Expand Up @@ -52,12 +52,16 @@ 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 d002d58

Please sign in to comment.