some manual work and fixed crash bug with cancel loading a session

This commit is contained in:
Dave Griffiths
2022-09-07 11:03:23 +01:00
parent 4a2092339b
commit d394b0c182
6 changed files with 236 additions and 27 deletions

View File

@ -101,7 +101,8 @@ void MainWindow::init_from_session(const string &filename) {
// pull the bits out of the file to set the interface...
// is this easier than direct access? no idea??
ifstream ifs(filename.c_str(),ios::binary);
if (!ifs) return;
brain s,t;
u32 version=0;
ifs||version;