aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/WebView.cpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-08-21 12:12:09 +0530
committerAkshay Nair <phenax5@gmail.com>2025-08-21 12:12:09 +0530
commit7db40483aa2edb9be380bae3c90d2f54eae4deb1 (patch)
treec26498b8c583c1f178edd985a9780a7a668385ab /src/widgets/WebView.cpp
parenta634243a1d563ab4fe8dcd14bc9abd5b5617c858 (diff)
downloadnull-browser-7db40483aa2edb9be380bae3c90d2f54eae4deb1.tar.gz
null-browser-7db40483aa2edb9be380bae3c90d2f54eae4deb1.zip
Close devtools window when webview is closedHEADmain
Diffstat (limited to 'src/widgets/WebView.cpp')
-rw-r--r--src/widgets/WebView.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/WebView.cpp b/src/widgets/WebView.cpp
index ceb9c8e..1cd3d54 100644
--- a/src/widgets/WebView.cpp
+++ b/src/widgets/WebView.cpp
@@ -24,6 +24,11 @@ void WebView::open_devtools() {
devtools_window = nullptr;
});
+ connect(this, &WebView::destroyed, this, [this]() {
+ devtools_window->deleteLater();
+ devtools_window = nullptr;
+ });
+
page()->setDevToolsPage(devtools_window->page());
}