Browse Source

No more PRs shall be merged until the new_api branch in my repo is merged. Contributions are welcome.

This commit fixes some minor style issues with #1406
pull/1418/head
Dubslow 10 years ago
parent
commit
885dc0638a
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA
  1. 8
      src/widget/widget.cpp

8
src/widget/widget.cpp

@ -59,7 +59,7 @@ @@ -59,7 +59,7 @@
#include <QList>
#include <QDesktopServices>
#include <QProcess>
#include <qlibraryinfo.h>
#include <QLibraryInfo>
#include <tox/tox.h>
#ifdef Q_OS_ANDROID
@ -225,16 +225,20 @@ void Widget::setTranslation() @@ -225,16 +225,20 @@ void Widget::setTranslation()
// system menu translation
QTranslator *qtTranslator = new QTranslator();
QString s_locale = "qt_"+locale;
if ( qtTranslator->load(s_locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath)) )
if (qtTranslator->load(s_locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
{
QApplication::installTranslator(qtTranslator);
qDebug() << "System translation loaded" << locale;
}
else
{
qDebug() << "System translation not loaded" << locale;
}
}
else
{
qDebug() << "Error loading translation" << locale;
}
QCoreApplication::installTranslator(translator);
}

Loading…
Cancel
Save