]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed database request threading issue in FlagUtil.join 09/2709/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Dec 2018 14:55:23 +0000 (16:55 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Mon, 25 Feb 2019 14:40:18 +0000 (14:40 +0000)
gitlab #234

Change-Id: Ic97e56de1af19938e622143bf9acbe2f6154f74a
(cherry picked from commit e478bb19f9329b3e7cd1c920ea8f5bdc63330f0e)

bundles/org.simantics.diagram/src/org/simantics/diagram/flag/FlagUtil.java

index 2d6c91e61e7dc1e6833a4d4404d97461c3e3c293..d38a301da3c4a9d93dc60c2de926eaa41af5aea7 100644 (file)
@@ -186,9 +186,9 @@ public final class FlagUtil {
 
         IActivationManager manager = g.getService(IActivationManager.class);
         for(Resource diagram : OrderedSetUtils.getSubjects(g, flag))
-            manager.activateOnce(diagram);
+            manager.activateOnce(g, diagram);
         for(Resource diagram : OrderedSetUtils.getSubjects(g, otherFlag))
-            manager.activateOnce(diagram);
+            manager.activateOnce(g, diagram);
         return connectionJoin;
     }