summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-12-18 10:25:43 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-12-18 10:46:46 +0100
commit90178924ee7dda26e5f9b07c21eb6b3c7b802c98 (patch)
tree47a4e72b173e5e2ad10aacbb726931f03e358e27 /src/webenginewidgets
parent168867aac8789f00adad08e574b16569084cb9cd (diff)
parent6f9ecd0a4675b0e1a7ef6851cbda7e43c05e9536 (diff)
Merge remote-tracking branch 'origin/5.10' into dev
Diffstat (limited to 'src/webenginewidgets')
-rw-r--r--src/webenginewidgets/api/qwebenginepage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/webenginewidgets/api/qwebenginepage.cpp b/src/webenginewidgets/api/qwebenginepage.cpp
index fb7372284..3bb7f6c83 100644
--- a/src/webenginewidgets/api/qwebenginepage.cpp
+++ b/src/webenginewidgets/api/qwebenginepage.cpp
@@ -1365,7 +1365,8 @@ void QWebEnginePage::triggerAction(WebAction action, bool)
d->adapter->inspectElementAt(menuData.position());
break;
case ExitFullScreen:
- d->adapter->exitFullScreen();
+ // See under ViewSource, anything that can trigger a delete of the current view is dangerous to call directly here.
+ QTimer::singleShot(0, this, [d](){ d->adapter->exitFullScreen(); });
break;
case RequestClose:
d->adapter->requestClose();