eric6/Plugins/UiExtensionPlugins/Translator/TranslatorRequest.py

changeset 7759
51aa6c6b66f7
parent 7360
9190402e4505
child 7780
41420f82c0ac
diff -r dd54d33d21d2 -r 51aa6c6b66f7 eric6/Plugins/UiExtensionPlugins/Translator/TranslatorRequest.py
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorRequest.py	Mon Oct 05 19:51:55 2020 +0200
+++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorRequest.py	Tue Oct 06 17:52:44 2020 +0200
@@ -58,7 +58,7 @@
                 request.setRawHeader(name, value)
         reply = self.__networkManager.get(request)
         if not self.__loop.isRunning():
-            self.__loop.exec_()
+            self.__loop.exec()
         if reply.error() != QNetworkReply.NoError:
             return reply.errorString(), False
         else:
@@ -91,7 +91,7 @@
         request.setUrl(requestUrl)
         reply = self.__networkManager.post(request, requestData)
         if not self.__loop.isRunning():
-            self.__loop.exec_()
+            self.__loop.exec()
         if reply.error() != QNetworkReply.NoError:
             return reply.errorString(), False
         else:

eric ide

mercurial