summaryrefslogtreecommitdiff
path: root/ui/qt/wireshark_application.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-06-24 16:01:51 -0700
committerJoão Valverde <j@v6e.pt>2016-06-25 15:56:34 +0000
commitb47aca5fd1782cea68b2cba54263a75b5a3007e8 (patch)
tree6e24a76865882a0ae121fbb2b54a94d8f82032f8 /ui/qt/wireshark_application.cpp
parent79836fa23ae275466fd7414967bd17e0f629c888 (diff)
downloadwireshark-b47aca5fd1782cea68b2cba54263a75b5a3007e8.tar.gz
Minor UI locale updates.
Qt: Call setlocale before commandline_early_options so that we get proper "-v" output, similar to the GTK+ UI. GTK+: Call setlocale once at startup. Bug: 11960 Change-Id: I3c3a196b9d94fc768e1085200891bc8d67e21a08 Reviewed-on: https://code.wireshark.org/review/16132 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'ui/qt/wireshark_application.cpp')
-rw-r--r--ui/qt/wireshark_application.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/wireshark_application.cpp b/ui/qt/wireshark_application.cpp
index 523907555e..2ddb59af6c 100644
--- a/ui/qt/wireshark_application.cpp
+++ b/ui/qt/wireshark_application.cpp
@@ -1051,7 +1051,7 @@ static void switchTranslator(QTranslator& myTranslator, const QString& filename,
wsApp->installTranslator(&myTranslator);
}
-void WiresharkApplication::loadLanguage(const QString& newLanguage)
+void WiresharkApplication::loadLanguage(const QString newLanguage)
{
QLocale locale;
QString localeLanguage;