mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-29 21:57:18 +00:00
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: a4b289ebac
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)
|
InspectorWidget::InspectorWidget(QWidget* tab, WebContentView& content_view)
|
||||||
: QWidget(tab, Qt::Window)
|
: 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))
|
if (is_using_dark_system_theme(*this))
|
||||||
m_inspector_view->update_palette(WebContentView::PaletteMode::Dark);
|
m_inspector_view->update_palette(WebContentView::PaletteMode::Dark);
|
||||||
|
|
|
@ -85,6 +85,8 @@ public:
|
||||||
|
|
||||||
QPoint map_point_to_global_position(Gfx::IntPoint) const;
|
QPoint map_point_to_global_position(Gfx::IntPoint) const;
|
||||||
|
|
||||||
|
WebContentOptions const& web_content_options() const { return m_web_content_options; }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void urls_dropped(QList<QUrl> const&);
|
void urls_dropped(QList<QUrl> const&);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue