summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/main.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-07-25 20:36:58 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-07-26 11:10:26 +0200
commit5640d0d3c7df7e0eb03eb1921349066b0ee516b1 (patch)
tree35036129da1280fc0a576bac727abd20e72d6bb5 /rbutil/rbutilqt/main.cpp
parent1e39619034c7b0a3f190cdf2c1bafe5bc3e5cb62 (diff)
downloadrockbox-5640d0d3c7.tar.gz
rockbox-5640d0d3c7.tar.bz2
rockbox-5640d0d3c7.zip
rbutil: Call QLocale::setDefault() with QLocale.
QLocale::setDefault() shouldn't be called with a QString but a QLocale instead. Calling it with a string doesn't work with Qt6 anymore. Change-Id: I08826095cda8563e4ae9b83d08144da2d0d7f3c7
Diffstat (limited to 'rbutil/rbutilqt/main.cpp')
-rw-r--r--rbutil/rbutilqt/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp
index 93fb0f4b31..203bdd1e20 100644
--- a/rbutil/rbutilqt/main.cpp
+++ b/rbutil/rbutilqt/main.cpp
@@ -80,7 +80,7 @@ int main( int argc, char ** argv ) {
QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
qttrans.load("qt_" + applang, ":/lang");
- QLocale::setDefault(applang);
+ QLocale::setDefault(QLocale(applang));
}
delete user;
app.installTranslator(&translator);