aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItay Grudev <itay+89bf5c@grudev.com>2019-10-13 10:34:28 +0300
committerItay Grudev <itay+89bf5c@grudev.com>2019-10-13 10:34:28 +0300
commit117336df796e0abcda73dd43019e2cf050418d9c (patch)
tree51e3767cc4a27b3f4cf1a0f714d4287f3f2e94cf
parentDisables SingleApplication support on Android. Fixes #52 (diff)
downloadsingleapplication-117336df796e0abcda73dd43019e2cf050418d9c.tar.xz
Fallback for iOS as well
-rw-r--r--singleapplication.cpp8
1 files 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