From eea4c2f46ea79ec3b9ab791a105606f4c015a6fb Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 30 Nov 2012 17:02:49 +0100 Subject: [PATCH] * #ifdef'd QLocale call. --- src/TomahawkApp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/TomahawkApp.cpp b/src/TomahawkApp.cpp index 8542b7048..ebc285bc0 100644 --- a/src/TomahawkApp.cpp +++ b/src/TomahawkApp.cpp @@ -151,7 +151,11 @@ TomahawkApp::TomahawkApp( int& argc, char *argv[] ) void TomahawkApp::installTranslator() { +#if QT_VERSION >= 0x040800 QString locale = QLocale::system().uiLanguages().first(); +#else + QString locale = QLocale::system().name(); +#endif if ( locale == "C" ) locale = "en";