diff options
Diffstat (limited to 'Ladybird/SimpleWebView.cpp')
-rw-r--r-- | Ladybird/SimpleWebView.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ladybird/SimpleWebView.cpp b/Ladybird/SimpleWebView.cpp index f1f0a1df5d..8796e60f0a 100644 --- a/Ladybird/SimpleWebView.cpp +++ b/Ladybird/SimpleWebView.cpp @@ -586,13 +586,13 @@ 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; + m_js_console_widget = new QWidget(this); m_js_console_widget->setWindowTitle("JS Console"); - auto* layout = new QVBoxLayout; + auto* layout = new QVBoxLayout(m_js_console_widget); m_js_console_widget->setLayout(layout); - m_js_console_output_edit = new QTextEdit; + m_js_console_output_edit = new QTextEdit(this); m_js_console_output_edit->setReadOnly(true); - m_js_console_input_edit = new QLineEdit; + m_js_console_input_edit = new QLineEdit(this); layout->addWidget(m_js_console_output_edit); layout->addWidget(m_js_console_input_edit); m_js_console_widget->resize(640, 480); |