Commit c62613f1 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Adapt if the application object is destroyed

I haven't been able to reproduce the issue from the bug but this seems
to be the issue.

BUG: 390647
parent 0c4e121d
......@@ -52,6 +52,11 @@ void ApplicationAddonsModel::setApplication(AbstractResource* app)
m_app = app;
resetState();
if (m_app) {
connect(m_app, &QObject::destroyed, this, [this](){
setApplication(nullptr);
});
}
emit applicationChanged();
}
......
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