cppit / jucipp

A lightweight & cross-platform IDE supporting the most recent C++ standards. This project has moved to https://gitlab.com/cppit/jucipp.
https://gitlab.com/cppit/jucipp
MIT License
883 stars 98 forks source link

yet another one problem with global objects #354

Closed uncleyear closed 6 years ago

uncleyear commented 6 years ago

Hi. There is another problem with global objects(at least one i noticed). With that "old" version of glibmm library(i wonder, it is from april 2017) when we quit, global Project object(Project::current) is destroyed in a time when it is too late to use some resources(again global mutex in glibmm), so quick and easy solutuon would be to assign it a nullptr in an Application' destructor. This happens, for example, when we "compile" project and then exit.

eidheim commented 6 years ago

Thank you, should be fixed in the above commit. Pushing to master soon.

The exit code now also runs when closing a window through the x symbol in its decoration, that is using the desktop environment to close the window.