From 5e223a7f74bffaea4b355ed7617c26de4504019f Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 11 Oct 2019 16:50:52 +0300 Subject: Disables SingleApplication support on Android. Fixes #52 --- singleapplication.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit v1.2.1