Fixed seg fault on Bloom early shutdown (when invoking commands)

This commit is contained in:
Nav
2022-01-22 16:45:42 +00:00
parent 20155ee8ff
commit dc0c8643d7

View File

@@ -161,6 +161,10 @@ void Application::loadProjectSettings() {
} }
void Application::saveProjectSettings() { void Application::saveProjectSettings() {
if (!this->projectSettings.has_value()) {
return;
}
const auto projectSettingsPath = Paths::projectSettingsPath(); const auto projectSettingsPath = Paths::projectSettingsPath();
auto jsonSettingsFile = QFile(QString::fromStdString(projectSettingsPath)); auto jsonSettingsFile = QFile(QString::fromStdString(projectSettingsPath));