From db93e6b8536efccaa6693536337740854d141b71 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 11 Jun 2020 18:37:09 +0200 Subject: [PATCH] Fix warning about not registered Presence type --- src/UserSettingsPage.cpp | 1 - src/main.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp index 659e8ceb..0bba0506 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp @@ -49,7 +49,6 @@ UserSettings::UserSettings() { - qRegisterMetaType(); load(); } diff --git a/src/main.cpp b/src/main.cpp index ec4f638d..04ff5155 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -104,6 +104,9 @@ createCacheDirectory() int main(int argc, char *argv[]) { + // needed for settings so need to register before any settings are read to prevent warings + qRegisterMetaType(); + #if defined(Q_OS_LINUX) || defined(Q_OS_WIN) || defined(Q_OS_FREEBSD) if (qgetenv("QT_SCALE_FACTOR").size() == 0) { float factor = utils::scaleFactor();