mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
DisplaySettings: Fix crash on exit (due to Core::Object on the stack)
This commit is contained in:
parent
244fe1089c
commit
e8a59ef842
2 changed files with 4 additions and 3 deletions
|
@ -50,14 +50,15 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
DisplaySettingsWidget instance;
|
||||
// FIXME: Clean up this bizarre object graph
|
||||
auto instance = DisplaySettingsWidget::construct();
|
||||
|
||||
auto window = GUI::Window::construct();
|
||||
window->set_title("Display settings");
|
||||
window->move_to(100, 100);
|
||||
window->resize(360, 390);
|
||||
window->set_resizable(false);
|
||||
window->set_main_widget(instance.root_widget());
|
||||
window->set_main_widget(instance->root_widget());
|
||||
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-display-settings.png"));
|
||||
|
||||
auto menubar = GUI::MenuBar::construct();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue