소스 검색

UI/Qt: Unregister WebContentView instances just once

We already unregister the view in the ViewImplementation destructor. We
do not need to do so again in the WebContentView destructor.
Timothy Flynn 1 년 전
부모
커밋
62fa84865d
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      Ladybird/Qt/WebContentView.cpp

+ 1 - 5
Ladybird/Qt/WebContentView.cpp

@@ -140,11 +140,7 @@ WebContentView::WebContentView(QWidget* window, RefPtr<WebView::WebContentClient
     };
 }
 
-WebContentView::~WebContentView()
-{
-    if (m_client_state.client)
-        m_client_state.client->unregister_view(m_client_state.page_index);
-}
+WebContentView::~WebContentView() = default;
 
 static Web::UIEvents::MouseButton get_button_from_qt_event(QSinglePointEvent const& event)
 {