summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2021-01-05 22:10:30 +0100
committerChristoph Berg <myon@debian.org>2021-01-05 22:10:30 +0100
commit8e43a898258cdf4a3eaec64f06069017b2d24a4d (patch)
tree82cfd1cbc20f8a219522a8036e8a3622eec44440 /main.cpp
parenta42d3323808f2f57138c4a636db7f9f78c30c59f (diff)
parent061dc1a349738747489ef0c0ebeeb4443e369501 (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.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/main.cpp b/main.cpp
index 021e327b..c6dd0ccb 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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)};