diff --git a/main.cpp b/main.cpp index e0ea086730..d038fb5243 100644 --- a/main.cpp +++ b/main.cpp @@ -312,10 +312,10 @@ void Application::registerDBusService() void Application::setupTranslator() { - QTranslator qtTranslator; - qtTranslator.load("qt_" + QLocale::system().name(), - QLibraryInfo::location(QLibraryInfo::TranslationsPath)); - installTranslator(&qtTranslator); + QTranslator *qtTranslator = new QTranslator(qApp); + qtTranslator->load("qt_" + QLocale::system().name(), + QLibraryInfo::location(QLibraryInfo::TranslationsPath)); + installTranslator(qtTranslator); } void Application::setupMalloc()