Disables SingleApplication support on Android. Fixes #52

This commit is contained in:
Itay Grudev 2019-10-11 16:50:52 +03:00
parent 33975c1743
commit 5e223a7f74

View File

@ -41,6 +41,13 @@ SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSeconda
{ {
Q_D(SingleApplication); 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 // Store the current mode of the program
d->options = options; d->options = options;