From 117336df796e0abcda73dd43019e2cf050418d9c Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Sun, 13 Oct 2019 10:34:28 +0300 Subject: Fallback for iOS as well --- singleapplication.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/singleapplication.cpp b/singleapplication.cpp index f8c4bf8..ba35c3a 100644 --- a/singleapplication.cpp +++ b/singleapplication.cpp @@ -41,10 +41,10 @@ SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSeconda { Q_D(SingleApplication); -#ifdef Q_OS_ANDROID - // On Android since the library is not supported fallback to standard - // QApplication behaviour by simply returning. - qWarning() << "SingleApplication is not supported on Android systems."; +#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS) + // On Android and iOS since the library is not supported fallback to + // standard QApplication behaviour by simply returning at this point. + qWarning() << "SingleApplication is not supported on Android and iOS systems."; return; #endif -- cgit v1.2.1