UI/Qt: Don't crash when launching Inspector with Qt networking enabled
This commit is contained in:
parent
4c326fc5f6
commit
a4b289ebac
Notes:
github-actions[bot]
2024-07-23 18:49:53 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/a4b289ebac8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/793 Reviewed-by: https://github.com/trflynn89 ✅
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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&);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue