Fix a bug in that last commit

This commit is contained in:
Mark Watkins 2014-07-31 06:33:24 +10:00
parent 8617b1634c
commit 2665c20e63
2 changed files with 4 additions and 2 deletions

View File

@ -291,9 +291,9 @@ int FPIconLoader::OpenMachine(Machine *mach, QString &path)
// }
int c = Sessions.size();
finishAddingSessions();
mach->Save();
finishAddingSessions();
return c;
}

View File

@ -536,7 +536,7 @@ int IntellipapLoader::Open(QString path)
sess->UpdateSummaries();
mach->AddSession(sess);
addSession(sess);
} else {
delete sess;
}
@ -544,8 +544,10 @@ int IntellipapLoader::Open(QString path)
}
}
finishAddingSessions();
mach->Save();
delete [] m_buffer;
if (qprogress) { qprogress->setValue(100); }