diff --git a/client/core/controllers/gatewayController.cpp b/client/core/controllers/gatewayController.cpp index bba0ef9d9..b0be8d316 100644 --- a/client/core/controllers/gatewayController.cpp +++ b/client/core/controllers/gatewayController.cpp @@ -137,7 +137,7 @@ ErrorCode GatewayController::post(const QString &endpoint, const QJsonObject api QList sslErrors; connect(reply, &QNetworkReply::sslErrors, [this, &sslErrors](const QList &errors) { sslErrors = errors; }); - wait.exec(); + wait.exec(QEventLoop::ExcludeUserInputEvents); QByteArray encryptedResponseBody = reply->readAll(); QString replyErrorString = reply->errorString(); @@ -273,7 +273,7 @@ QStringList GatewayController::getProxyUrls(const QString &serviceType, const QS connect(reply, &QNetworkReply::finished, &wait, &QEventLoop::quit); connect(reply, &QNetworkReply::sslErrors, [this, &sslErrors](const QList &errors) { sslErrors = errors; }); - wait.exec(); + wait.exec(QEventLoop::ExcludeUserInputEvents); if (reply->error() == QNetworkReply::NetworkError::NoError) { auto encryptedResponseBody = reply->readAll(); @@ -385,7 +385,7 @@ void GatewayController::bypassProxy(const QString &endpoint, const QString &serv QObject::connect(reply, &QNetworkReply::finished, &wait, &QEventLoop::quit); connect(reply, &QNetworkReply::sslErrors, [this, &sslErrors](const QList &errors) { sslErrors = errors; }); - wait.exec(); + wait.exec(QEventLoop::ExcludeUserInputEvents); auto result = replyProcessingFunction(reply, sslErrors); reply->deleteLater(); @@ -407,7 +407,7 @@ void GatewayController::bypassProxy(const QString &endpoint, const QString &serv connect(reply, &QNetworkReply::finished, &wait, &QEventLoop::quit); connect(reply, &QNetworkReply::sslErrors, [this, &sslErrors](const QList &errors) { sslErrors = errors; }); - wait.exec(); + wait.exec(QEventLoop::ExcludeUserInputEvents); if (reply->error() == QNetworkReply::NetworkError::NoError) { reply->deleteLater(); diff --git a/client/ui/controllers/api/apiPremV1MigrationController.cpp b/client/ui/controllers/api/apiPremV1MigrationController.cpp index 77352003a..abaabaa6e 100644 --- a/client/ui/controllers/api/apiPremV1MigrationController.cpp +++ b/client/ui/controllers/api/apiPremV1MigrationController.cpp @@ -82,7 +82,7 @@ void ApiPremV1MigrationController::sendMigrationCode(const int subscriptionIndex { QEventLoop wait; QTimer::singleShot(1000, &wait, &QEventLoop::quit); - wait.exec(); + wait.exec(QEventLoop::ExcludeUserInputEvents); GatewayController gatewayController(m_settings->getGatewayEndpoint(), m_settings->isDevGatewayEnv(), apiDefs::requestTimeoutMsecs, m_settings->isStrictKillSwitchEnabled()); diff --git a/client/ui/controllers/api/apiSettingsController.cpp b/client/ui/controllers/api/apiSettingsController.cpp index 58ba9af9f..c6b69647d 100644 --- a/client/ui/controllers/api/apiSettingsController.cpp +++ b/client/ui/controllers/api/apiSettingsController.cpp @@ -46,7 +46,7 @@ bool ApiSettingsController::getAccountInfo(bool reload) if (reload) { QEventLoop wait; QTimer::singleShot(1000, &wait, &QEventLoop::quit); - wait.exec(); + wait.exec(QEventLoop::ExcludeUserInputEvents); } GatewayController gatewayController(m_settings->getGatewayEndpoint(), m_settings->isDevGatewayEnv(), requestTimeoutMsecs,