Skip to content

Commit

Permalink
Merge pull request #76 from itay-grudev/android_fallback
Browse files Browse the repository at this point in the history
Android and iOS fallback
  • Loading branch information
itay-grudev committed Oct 13, 2019
2 parents 33975c1 + c5b4d40 commit 16ea64b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

__3.0.18__
----------

* Fallback to standard QApplication class on iOS and Android systems where
the library is not supported.

__3.0.17__
----------

Expand Down
7 changes: 7 additions & 0 deletions singleapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSeconda
{
Q_D(SingleApplication);

#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

// Store the current mode of the program
d->options = options;

Expand Down

0 comments on commit 16ea64b

Please sign in to comment.