From 34846dbe318113434f5b107af849797d42b4a6cd Mon Sep 17 00:00:00 2001 From: gambas Date: Wed, 13 Apr 2022 11:38:01 +0200 Subject: [PATCH] Fix use of GB.Wait(). [GB.GTK3.WEBVIEW] * BUG: Fix use of GB.Wait(). [GB.QT5.WEBVIEW] * BUG: Fix use of GB.Wait(). --- gb.gtk3/src/webview/c_webview.c | 2 +- gb.qt5/src/webview/c_webview.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gb.gtk3/src/webview/c_webview.c b/gb.gtk3/src/webview/c_webview.c index 063d6957a..30fabfff3 100644 --- a/gb.gtk3/src/webview/c_webview.c +++ b/gb.gtk3/src/webview/c_webview.c @@ -393,7 +393,7 @@ BEGIN_METHOD(WebView_ExecJavascript, GB_STRING script) webkit_web_view_run_javascript(WIDGET, script, NULL, (GAsyncReadyCallback)cb_javascript_finished, (gpointer)THIS); while(THIS->js_running) - GB.Wait(0); + GB.Wait(-1); if (THIS->js_error) { diff --git a/gb.qt5/src/webview/c_webview.cpp b/gb.qt5/src/webview/c_webview.cpp index 6654e846a..199222d5f 100644 --- a/gb.qt5/src/webview/c_webview.cpp +++ b/gb.qt5/src/webview/c_webview.cpp @@ -447,7 +447,7 @@ BEGIN_METHOD(WebView_ExecJavascript, GB_STRING script) WIDGET->page()->runJavaScript(QSTRING_ARG(script), cb_javascript_finished); while(_js_running) - GB.Wait(0); + GB.Wait(-1); if (_js_error) {