LibGUI: Get rid of GWindow's destroy-on-close mechanism

Since we're moving to a world of ref-counting, we can't have weird
behaviors like "windows delete themselves when you close them."

The "close app when there are no more windows" mechanism is moved
to GWindow::hide(). Now, we close the app when it has no more
windows on screen.
This commit is contained in:
Andreas Kling 2019-09-21 18:53:17 +02:00
parent 7584480f62
commit 870bc2a4d1
Notes: sideshowbarker 2024-07-19 12:01:21 +09:00
3 changed files with 11 additions and 10 deletions

View file

@ -31,7 +31,6 @@ GComboBox::GComboBox(GWidget* parent)
m_list_window = GWindow::construct(this);
// FIXME: This is obviously not a tooltip window, but it's the closest thing to what we want atm.
m_list_window->set_window_type(GWindowType::Tooltip);
m_list_window->set_should_destroy_on_close(false);
m_list_view = GListView::construct(nullptr);
m_list_view->horizontal_scrollbar().set_visible(false);