summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/contentmanipulation/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webenginewidgets/contentmanipulation/mainwindow.cpp')
-rw-r--r--examples/webenginewidgets/contentmanipulation/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/webenginewidgets/contentmanipulation/mainwindow.cpp b/examples/webenginewidgets/contentmanipulation/mainwindow.cpp
index 3198f0908..74d647c69 100644
--- a/examples/webenginewidgets/contentmanipulation/mainwindow.cpp
+++ b/examples/webenginewidgets/contentmanipulation/mainwindow.cpp
@@ -70,6 +70,7 @@ InvokeWrapper<Arg, R, C> invoke(R *receiver, void (C::*memberFun)(Arg))
MainWindow::MainWindow(const QUrl& url)
{
+ setAttribute(Qt::WA_DeleteOnClose, true);
progress = 0;
QFile file;