HaikuDepot: Inherit from BWindow last so it is destroyed before everything else.
This eliminates the need for the early deletion of certain controls. Part of #17579.
This commit is contained in:
@@ -293,12 +293,8 @@ MainWindow::~MainWindow()
|
|||||||
fShuttingDownWindow->Quit();
|
fShuttingDownWindow->Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
// We must clear and delete these early to release references.
|
// We must clear the model early to release references.
|
||||||
fModel.Clear();
|
fModel.Clear();
|
||||||
fFeaturedPackagesView->RemoveSelf();
|
|
||||||
fPackageListView->RemoveSelf();
|
|
||||||
delete fFeaturedPackagesView;
|
|
||||||
delete fPackageListView;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -35,9 +35,9 @@ class ShuttingDownWindow;
|
|||||||
class WorkStatusView;
|
class WorkStatusView;
|
||||||
|
|
||||||
|
|
||||||
class MainWindow : public BWindow, private PackageInfoListener,
|
class MainWindow : private PackageInfoListener,
|
||||||
private ProcessCoordinatorConsumer, public ProcessCoordinatorListener,
|
private ProcessCoordinatorConsumer, public ProcessCoordinatorListener,
|
||||||
public UserDetailVerifierListener {
|
public UserDetailVerifierListener, public BWindow {
|
||||||
public:
|
public:
|
||||||
MainWindow(const BMessage& settings);
|
MainWindow(const BMessage& settings);
|
||||||
MainWindow(const BMessage& settings,
|
MainWindow(const BMessage& settings,
|
||||||
|
|||||||
Reference in New Issue
Block a user