Skip to content

Commit 2a8c8b0

Browse files
nyalldawsonnirvn
authored andcommittedMay 13, 2019
Tiny bit of extra safety
1 parent 6251853 commit 2a8c8b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/auth/oauth2/qgsauthoauth2method.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ bool QgsAuthOAuth2Method::updateNetworkRequest( QNetworkRequest &request, const
156156
o2->refresh();
157157

158158
// block request update until asynchronous linking loop is quit
159-
rloop.exec();
159+
rloop.exec( QEventLoop::ExcludeUserInputEvents );
160160

161161
// refresh result should set o2 to (un)linked
162162
}

‎src/auth/oauth2/qgso2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class QgsO2: public O2
7676

7777
protected:
7878

79-
QNetworkAccessManager* getManager() override;
79+
QNetworkAccessManager *getManager() override;
8080

8181
signals:
8282

0 commit comments

Comments
 (0)
Please sign in to comment.