mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-27 23:50:19 -05:00
Introduces a flag to track if the application is currently in its destruction phase. The `notify` method now checks this flag and, if set, delegates event processing directly to the base `QApplication::notify`. This prevents custom event handlers from attempting to access member variables that may have already been destroyed or are in an invalid state, particularly when `close()` calls on main windows might trigger events during `RiaGuiApplication`'s destruction.