2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-04 05:35:36 +00:00

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

View File

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