diff options
Diffstat (limited to 'singleapplication.cpp')
-rw-r--r-- | singleapplication.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/singleapplication.cpp b/singleapplication.cpp index bc9e059..ba35c3a 100644 --- a/singleapplication.cpp +++ b/singleapplication.cpp @@ -41,6 +41,13 @@ SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSeconda { Q_D(SingleApplication); +#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 + // Store the current mode of the program d->options = options; |