From 257538ab8b813f0b287af94096392e975dbf6bcb Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 9 May 2019 23:28:05 +0000 Subject: [PATCH] Tiny bit of extra safety --- src/auth/oauth2/qgsauthoauth2method.cpp | 2 +- src/auth/oauth2/qgso2.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth/oauth2/qgsauthoauth2method.cpp b/src/auth/oauth2/qgsauthoauth2method.cpp index 1f2654729273..4f1e1050a2de 100644 --- a/src/auth/oauth2/qgsauthoauth2method.cpp +++ b/src/auth/oauth2/qgsauthoauth2method.cpp @@ -156,7 +156,7 @@ bool QgsAuthOAuth2Method::updateNetworkRequest( QNetworkRequest &request, const o2->refresh(); // block request update until asynchronous linking loop is quit - rloop.exec(); + rloop.exec( QEventLoop::ExcludeUserInputEvents ); // refresh result should set o2 to (un)linked } diff --git a/src/auth/oauth2/qgso2.h b/src/auth/oauth2/qgso2.h index 834dcce7529f..ab3fbc708980 100644 --- a/src/auth/oauth2/qgso2.h +++ b/src/auth/oauth2/qgso2.h @@ -76,7 +76,7 @@ class QgsO2: public O2 protected: - QNetworkAccessManager* getManager() override; + QNetworkAccessManager *getManager() override; signals: