Qt: Don't crash if patch isn't present

This commit is contained in:
Vicki Pfau 2018-09-01 21:22:07 -07:00
parent 11880f5760
commit 7d79db7d7d
1 changed files with 1 additions and 1 deletions

View File

@ -571,8 +571,8 @@ void CoreController::loadPatch(const QString& patchPath) {
if (patch) {
m_threadContext.core->loadPatch(m_threadContext.core, patch);
m_patched = true;
patch->close(patch);
}
patch->close(patch);
if (mCoreThreadHasStarted(&m_threadContext)) {
reset();
}