mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-01-15 08:52:08 +08:00
Disables SingleApplication support on Android. Fixes #52
This commit is contained in:
parent
33975c1743
commit
5e223a7f74
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user