From: Jussi Koskela Date: Thu, 29 Dec 2016 15:52:05 +0000 (+0200) Subject: Cluster sets are written to wrong directory until first snapshot is made X-Git-Tag: v1.27.0~32^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=dc4ea7660e4a7fe9e9f8d0f23cdd53de9968b104;p=simantics%2Fplatform.git Cluster sets are written to wrong directory until first snapshot is made Initialize write directory in GraphClientImpl2 constructor. refs #6906 Change-Id: I8b985db54ee080a981f2db1543ef1f027127c2ad --- diff --git a/bundles/org.simantics.acorn/src/org/simantics/acorn/GraphClientImpl2.java b/bundles/org.simantics.acorn/src/org/simantics/acorn/GraphClientImpl2.java index 90af336aa..982c743fd 100644 --- a/bundles/org.simantics.acorn/src/org/simantics/acorn/GraphClientImpl2.java +++ b/bundles/org.simantics.acorn/src/org/simantics/acorn/GraphClientImpl2.java @@ -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); }