mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2024-11-15 12:15:43 +08:00
Fallback for iOS as well
This commit is contained in:
parent
5e223a7f74
commit
117336df79
@ -41,10 +41,10 @@ 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.";
|
||||
#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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user