Skip to content

Commit e0c761c

Browse files
committed
main: fix installation of qt translator
1 parent 7f9a755 commit e0c761c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@ int main( int argc, char *argv[] )
790790
}
791791

792792
QTranslator qgistor( 0 );
793+
QTranslator qttor( 0 );
793794
if ( myTranslationCode != "C" )
794795
{
795796
if ( qgistor.load( QString( "qgis_" ) + myTranslationCode, i18nPath ) )
@@ -806,7 +807,6 @@ int main( int argc, char *argv[] )
806807
* the About, Preferences and Quit items to the Mac Application menu.
807808
* These items must be translated identically in both qt_ and qgis_ files.
808809
*/
809-
QTranslator qttor( 0 );
810810
if ( qttor.load( QString( "qt_" ) + myTranslationCode, QLibraryInfo::location( QLibraryInfo::TranslationsPath ) ) )
811811
{
812812
myApp.installTranslator( &qttor );

0 commit comments

Comments
 (0)