UI/Qt: Don't crash when launching Inspector with Qt networking enabled

This commit is contained in:
Tim Ledbetter 2024-07-23 18:05:50 +01:00 committed by Tim Flynn
parent 4c326fc5f6
commit a4b289ebac
Notes: github-actions[bot] 2024-07-23 18:49:53 +00:00
2 changed files with 3 additions and 1 deletions

View file

@ -22,7 +22,7 @@ extern bool is_using_dark_system_theme(QWidget&);
InspectorWidget::InspectorWidget(QWidget* tab, WebContentView& content_view)
: QWidget(tab, Qt::Window)
{
m_inspector_view = new WebContentView(this, {}, {});
m_inspector_view = new WebContentView(this, content_view.web_content_options(), {});
if (is_using_dark_system_theme(*this))
m_inspector_view->update_palette(WebContentView::PaletteMode::Dark);

View file

@ -85,6 +85,8 @@ public:
QPoint map_point_to_global_position(Gfx::IntPoint) const;
WebContentOptions const& web_content_options() const { return m_web_content_options; }
signals:
void urls_dropped(QList<QUrl> const&);