1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:04:59 +00:00

Ladybird/Qt: Make the Inspector widget owned by its parent tab

This ensures the Inspector is closed when the BrowserWindow which owns
the tab is closed.
This commit is contained in:
Timothy Flynn 2023-12-04 11:03:40 -05:00 committed by Andrew Kaster
parent 4653733a0d
commit c55d8a9971
3 changed files with 4 additions and 3 deletions

View file

@ -690,7 +690,7 @@ void Tab::recreate_toolbar_icons()
void Tab::show_inspector_window(InspectorTarget inspector_target)
{
if (!m_inspector_widget)
m_inspector_widget = new Ladybird::InspectorWidget(view());
m_inspector_widget = new InspectorWidget(this, view());
m_inspector_widget->show();
m_inspector_widget->activateWindow();