save and restore the current bin during reset since we
should continue in whatever bin we were in. --HG-- extra : convert_revision : 30a891ccb03afa0c1dd0c98942ab3ea5ba800660
This commit is contained in:
@@ -272,6 +272,8 @@ Database::reset()
|
||||
++i;
|
||||
}
|
||||
|
||||
MainBin *orig = MainBin::current();
|
||||
|
||||
list<GenBin *>::iterator bi = bins.begin();
|
||||
list<GenBin *>::iterator be = bins.end();
|
||||
while (bi != be) {
|
||||
@@ -286,6 +288,8 @@ Database::reset()
|
||||
}
|
||||
++bi;
|
||||
}
|
||||
|
||||
orig->activate();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user