diff -r fe094d0687ad -r c27612f0eac0 src/main.cpp --- a/src/main.cpp Wed Jun 22 23:51:06 2022 +0300 +++ b/src/main.cpp Sun Jun 26 19:44:45 2022 +0300 @@ -72,10 +72,16 @@ QCoreApplication::setOrganizationName("hecknology.net"); QCoreApplication::setOrganizationDomain("hecknology.net"); qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType>(); + qRegisterMetaType(); + qRegisterMetaType(); +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) qRegisterMetaTypeStreamOperators("Library"); qRegisterMetaTypeStreamOperators("Libraries"); qRegisterMetaTypeStreamOperators(); qRegisterMetaTypeStreamOperators(); +#endif } template @@ -153,7 +159,7 @@ { if (not locale.isEmpty()) { const QString localeCode = ::localeCode(locale); - QLocale::setDefault({localeCode}); + QLocale::setDefault(QLocale{localeCode}); qApp->removeTranslator(translator); const QString path = LOCALE_DIR.filePath(localeCode + ".qm"); const bool loadSuccessful = translator->load(path);