mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50: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();
|
||||
finishAddingSessions();
|
||||
mach->Save();
|
||||
|
||||
finishAddingSessions();
|
||||
|
||||
return c;
|
||||
}
|
||||
|
@ -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); }
|
||||
|
Loading…
Reference in New Issue
Block a user