mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:07:44 +00:00
Ladybird: The JS console widget should be a standalone window
...not part of the WebView. Its lifetime is managed by a QPointer.
This commit is contained in:
parent
b2ba91123b
commit
c2230d5fe8
1 changed files with 1 additions and 1 deletions
|
@ -586,7 +586,7 @@ void SimpleWebView::did_get_js_console_messages(i32, Vector<String>, Vector<Stri
|
|||
void SimpleWebView::ensure_js_console_widget()
|
||||
{
|
||||
if (!m_js_console_widget) {
|
||||
m_js_console_widget = new QWidget(this);
|
||||
m_js_console_widget = new QWidget;
|
||||
m_js_console_widget->setWindowTitle("JS Console");
|
||||
auto* layout = new QVBoxLayout(m_js_console_widget);
|
||||
m_js_console_widget->setLayout(layout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue