Commit d08000da authored by Mathieu Faverge's avatar Mathieu Faverge

Fix segfault when closing the application

parent e1506cdc
......@@ -772,10 +772,14 @@ void Interface_graphic::on_close_triggered(){
void Interface_graphic::on_quit_triggered(){
((QWidget*)_ui_node_selection)->close();
((QWidget*)_ui_interval_selection)->close();
((QWidget*)_ui_help_window)->close();
((QWidget*)_ui_info_window)->close();
if( NULL != _ui_node_selection)
((QWidget*)_ui_node_selection)->close();
if( NULL != _ui_interval_selection)
((QWidget*)_ui_interval_selection)->close();
if( NULL != _ui_help_window)
((QWidget*)_ui_help_window)->close();
if( NULL != _ui_info_window)
((QWidget*)_ui_info_window)->close();
((QWidget*)this)->close();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment