diff options
| author | Christoph Berg <myon@debian.org> | 2021-01-05 22:10:30 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2021-01-05 22:10:30 +0100 |
| commit | 8e43a898258cdf4a3eaec64f06069017b2d24a4d (patch) | |
| tree | 82cfd1cbc20f8a219522a8036e8a3622eec44440 /main.cpp | |
| parent | a42d3323808f2f57138c4a636db7f9f78c30c59f (diff) | |
| parent | 061dc1a349738747489ef0c0ebeeb4443e369501 (diff) | |
Update upstream source from tag 'upstream/2.3.0_rc3+repack'
Update to upstream version '2.3.0~rc3+repack'
with Debian dir 5129b722b4b0bb33d8e8b0c41dd5606650a3ee38
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -76,7 +76,13 @@ namespace switch (static_cast<QMetaType::Type> (v.type ())) { case QMetaType::QByteArray: - os << "0x" << v.toByteArray ().toHex (':').toStdString (); + os << "0x" +#if QT_VERSION >= QT_VERSION_CHECK (5, 9, 0) + << v.toByteArray ().toHex (':').toStdString () +#else + << v.toByteArray ().toHex ().toStdString () +#endif + ; break; case QMetaType::QBitArray: @@ -98,7 +104,6 @@ namespace int main(int argc, char *argv[]) { - ::qInstallMessageHandler (&WSJTXLogging::qt_log_handler); init_random_seed (); // make the Qt type magic happen @@ -205,7 +210,9 @@ int main(int argc, char *argv[]) multiple = true; } - // now we have the application name we can open the settings + // now we have the application name we can open the logging and settings + WSJTXLogging lg; + LOG_INFO (program_title (revision ()) << " - Program startup"); MultiSettings multi_settings {parser.value (cfg_option)}; // find the temporary files path @@ -241,9 +248,6 @@ int main(int argc, char *argv[]) } } - WSJTXLogging lg; - LOG_INFO (program_title (revision ()) << " - Program startup"); - // load UI translations L10nLoader l10n {&a, locale, parser.value (lang_option)}; |
