diff options
author | Fabian Müller <fmueller@owncloud.com> | 2022-10-26 15:46:31 +0300 |
---|---|---|
committer | Fabian Müller <80399010+fmoc@users.noreply.github.com> | 2022-11-11 19:06:54 +0300 |
commit | b4197d414964f594280a8bcb59cb99d598db6cc5 (patch) | |
tree | b0e49945e86540cd9c75d48c9eb8af082fa9064f /src | |
parent | 33b2171b683cf641ba6d1ef95dff38eb47771c06 (diff) |
Make sure QApplication has been initialized
Diffstat (limited to 'src')
-rw-r--r-- | src/libsync/platform_mac_deprecated.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsync/platform_mac_deprecated.mm b/src/libsync/platform_mac_deprecated.mm index 188b0378a..cfa0ea55e 100644 --- a/src/libsync/platform_mac_deprecated.mm +++ b/src/libsync/platform_mac_deprecated.mm @@ -120,6 +120,8 @@ namespace Deprecated { /// Migrate from deprecated API of "Login Items" to launchd plist files (if needed). void migrateLaunchOnStartup() { + Q_ASSERT(QCoreApplication::instance() != nullptr); + bool hasDeprecatedLaunchOnStartup = Deprecated::hasLaunchOnStartup(); // Three possibilities here for `hasDeprecatedLaunchOnStartup`: |