Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFabian Müller <fmueller@owncloud.com>2022-10-26 15:46:31 +0300
committerFabian Müller <80399010+fmoc@users.noreply.github.com>2022-11-11 19:06:54 +0300
commitb4197d414964f594280a8bcb59cb99d598db6cc5 (patch)
treeb0e49945e86540cd9c75d48c9eb8af082fa9064f /src
parent33b2171b683cf641ba6d1ef95dff38eb47771c06 (diff)
Make sure QApplication has been initialized
Diffstat (limited to 'src')
-rw-r--r--src/libsync/platform_mac_deprecated.mm2
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`: