X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.ui%2Fsrc%2Forg%2Fsimantics%2Fui%2Fworkbench%2Feditor%2FOpenDefaultEditor.java;h=341fbf3a60381ec81cff0efb110fa9b7bad2c69c;hb=20c2fa2629081d808fe313e387951f69111236b6;hp=4e75611e03bf4515d57f7b08ce3a6b4f5a84612b;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/OpenDefaultEditor.java b/bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/OpenDefaultEditor.java index 4e75611e0..341fbf3a6 100644 --- a/bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/OpenDefaultEditor.java +++ b/bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/OpenDefaultEditor.java @@ -46,7 +46,7 @@ public class OpenDefaultEditor implements IDoubleClickAction { protected void safeRun() throws Exception { super.safeRun(); - if (rememberChoice) { + if (rememberChoice && a.getPriority() >= 0) { // Make this choice the default for the next time. EditorRegistry.getInstance().getMappings().put(getResource(), getAdapter()); }