aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItay Grudev <itay+89bf5c@grudev.com>2019-10-11 16:50:52 +0300
committerItay Grudev <itay+89bf5c@grudev.com>2019-10-11 16:50:52 +0300
commit5e223a7f74bffaea4b355ed7617c26de4504019f (patch)
tree62ddb5fe3a8973cf499a7e11e0b7c85b8994e99d
parentUpdate CHANGELOG.md (diff)
downloadsingleapplication-5e223a7f74bffaea4b355ed7617c26de4504019f.tar.xz
Disables SingleApplication support on Android. Fixes #52
-rw-r--r--singleapplication.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/singleapplication.cpp b/singleapplication.cpp
index bc9e059..f8c4bf8 100644
--- a/singleapplication.cpp
+++ b/singleapplication.cpp
@@ -41,6 +41,13 @@ 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.";
+ return;
+#endif
+
// Store the current mode of the program
d->options = options;