diff options
author | Itay Grudev <itay+89bf5c@grudev.com> | 2019-10-13 10:34:28 +0300 |
---|---|---|
committer | Itay Grudev <itay+89bf5c@grudev.com> | 2019-10-13 10:34:28 +0300 |
commit | 117336df796e0abcda73dd43019e2cf050418d9c (patch) | |
tree | 51e3767cc4a27b3f4cf1a0f714d4287f3f2e94cf | |
parent | Disables SingleApplication support on Android. Fixes #52 (diff) | |
download | singleapplication-117336df796e0abcda73dd43019e2cf050418d9c.tar.xz |
Fallback for iOS as well
-rw-r--r-- | singleapplication.cpp | 8 |
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 |