Commit 3938f439 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED crashed during refresh when opening another component

parent 909b7960
......@@ -120,6 +120,8 @@ void FancyMainWindow::updateComponent() {
// ------------- fancyFileOpen -----------------
void FancyMainWindow::fancyFileOpen() {
// the current component is going to be closed, avoid dangling pointer
comp = nullptr;
Application::getAction("Close All")->trigger(this);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment