// RESTORE SESSION AFTER EXPORT IF NEED BE
if (sessionToRestore != null)
{
- sview.getBinding().openSession(sessionToRestore.getCanonicalPath());
+ Console.debug("Restoring session from "
+ + sessionToRestore);
+
+ sview.getBinding().restoreSession(sessionToRestore.getAbsolutePath());
+
}
} catch (ImageOutputException ioexc)
{
isError = true;
continue;
}
- catch (IOException ioexec)
- {
- addError("Unexpected error when restoring structure viewer session after custom view operations.");
- isError = true;
- continue;
- }
finally
{
- this.colourAlignFrame(af, originalColourScheme);
+ try {
+ this.colourAlignFrame(af, originalColourScheme);
+ } catch (Exception t)
+ {
+ addError("Unexpected error when restoring colourscheme to alignment after temporary change for export.",t);
+ }
}
}
}