Attempt to fix crash on windows

This commit is contained in:
Phillip Stephens 2022-01-09 20:34:57 -08:00
parent 13d4a94ee1
commit b354ed0740
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 3 additions and 1 deletions

View File

@ -577,7 +577,9 @@ void MainWindow::setBlenderOverride(const QString& path) {
int major = 0; int major = 0;
int minor = 0; int minor = 0;
auto realPath = hecl::blender::FindBlender(major, minor); auto realPath = hecl::blender::FindBlender(major, minor);
if (realPath) {
m_blenderOverridePath.fromStdString(*realPath); m_blenderOverridePath.fromStdString(*realPath);
}
m_settings.setValue(QStringLiteral("blender_override_path"), m_blenderOverridePath); m_settings.setValue(QStringLiteral("blender_override_path"), m_blenderOverridePath);
auto oldState = m_ui->blenderEdit->blockSignals(true); auto oldState = m_ui->blenderEdit->blockSignals(true);