]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Cluster sets are written to wrong directory until first snapshot is made 39/239/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Thu, 29 Dec 2016 15:52:05 +0000 (17:52 +0200)
committerJussi Koskela <jussi.koskela@semantum.fi>
Thu, 29 Dec 2016 15:52:05 +0000 (17:52 +0200)
Initialize write directory in GraphClientImpl2 constructor.

refs #6906
Change-Id: I8b985db54ee080a981f2db1543ef1f027127c2ad

bundles/org.simantics.acorn/src/org/simantics/acorn/GraphClientImpl2.java

index 90af336aafdc079fe99b6210ad9d139211d86f45..982c743fdeadb9ebe5d9939e5512e9e6bc638af9 100644 (file)
@@ -86,6 +86,7 @@ public class GraphClientImpl2 implements Database.Session {
            load();
            ClusterSetsSupport cssi = locator.getService(ClusterSetsSupport.class); 
            cssi.setReadDirectory(clusters.lastSessionDirectory);
+           cssi.updateWriteDirectory(clusters.workingDirectory);
            mainProgram = new MainProgram(this, clusters);
            executor.execute(mainProgram);
        }