From e4a8ad5e01fa89002412fb45c26b7109bf4d2470 Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Sat, 15 Jun 2024 10:46:12 +0200 Subject: [PATCH] Remove outdated WebInspector close button removal Signed-off-by: Juraj Oravec --- src/lib/webengine/webinspector.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/lib/webengine/webinspector.cpp b/src/lib/webengine/webinspector.cpp index 32ffc0af5..1eee17c98 100644 --- a/src/lib/webengine/webinspector.cpp +++ b/src/lib/webengine/webinspector.cpp @@ -103,15 +103,6 @@ void WebInspector::unregisterView(QWebEngineView *view) void WebInspector::loadFinished() { - // Show close button only when docked - if (!isWindow()) { - page()->runJavaScript(QL1S("var button = Components.dockController._closeButton;" - "button.setVisible(true);" - "button.element.onmouseup = function() {" - " window.close();" - "};")); - } - // Inspect element if (m_inspectElement) { m_view->triggerPageAction(QWebEnginePage::InspectElement);