mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 11:10:44 +00:00
Fix a bug in that last commit
This commit is contained in:
parent
8617b1634c
commit
2665c20e63
@ -291,9 +291,9 @@ int FPIconLoader::OpenMachine(Machine *mach, QString &path)
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
int c = Sessions.size();
|
int c = Sessions.size();
|
||||||
|
finishAddingSessions();
|
||||||
mach->Save();
|
mach->Save();
|
||||||
|
|
||||||
finishAddingSessions();
|
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
@ -536,7 +536,7 @@ int IntellipapLoader::Open(QString path)
|
|||||||
|
|
||||||
|
|
||||||
sess->UpdateSummaries();
|
sess->UpdateSummaries();
|
||||||
mach->AddSession(sess);
|
addSession(sess);
|
||||||
} else {
|
} else {
|
||||||
delete sess;
|
delete sess;
|
||||||
}
|
}
|
||||||
@ -544,8 +544,10 @@ int IntellipapLoader::Open(QString path)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
finishAddingSessions();
|
||||||
mach->Save();
|
mach->Save();
|
||||||
|
|
||||||
|
|
||||||
delete [] m_buffer;
|
delete [] m_buffer;
|
||||||
|
|
||||||
if (qprogress) { qprogress->setValue(100); }
|
if (qprogress) { qprogress->setValue(100); }
|
||||||
|
Loading…
Reference in New Issue
Block a user