fix deprecation of QMutex::Recursive in favor of QRecursiveMutex (#4328)

This commit is contained in:
ebbit1q 2021-05-02 00:51:17 +02:00 committed by GitHub
parent 1062894397
commit 63fe34437a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -88,7 +88,11 @@ private slots:
void doStartGameIfReady();
public:
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
mutable QRecursiveMutex gameMutex;
#else
mutable QMutex gameMutex;
#endif
Server_Game(const ServerInfo_User &_creatorInfo,
int _gameId,
const QString &_description,