From 742c4767dffa7dddc61e9a315356d24c61ef34c8 Mon Sep 17 00:00:00 2001 From: Moustafa Raafat Date: Mon, 3 Oct 2022 19:31:42 +0100 Subject: [PATCH] Ladybird/BrowserWindow: Make "View Source" a separate window View Source was a subwindow which made it cover part of the browser with no way for closing it. --- Ladybird/BrowserWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Ladybird/BrowserWindow.cpp b/Ladybird/BrowserWindow.cpp index 98cfa4b2bc6..be4bf8aa554 100644 --- a/Ladybird/BrowserWindow.cpp +++ b/Ladybird/BrowserWindow.cpp @@ -97,6 +97,7 @@ BrowserWindow::BrowserWindow() auto source = m_current_tab->view().source(); auto* text_edit = new QPlainTextEdit(this); + text_edit->setWindowFlags(Qt::Window); text_edit->setFont(QFontDatabase::systemFont(QFontDatabase::SystemFont::FixedFont)); text_edit->resize(800, 600); text_edit->setPlainText(source.characters());