diff --git a/com.archimatetool.editor/src/com/archimatetool/editor/actions/MRUMenuManager.java b/com.archimatetool.editor/src/com/archimatetool/editor/actions/MRUMenuManager.java index fd21889cd..9fad911af 100644 --- a/com.archimatetool.editor/src/com/archimatetool/editor/actions/MRUMenuManager.java +++ b/com.archimatetool.editor/src/com/archimatetool/editor/actions/MRUMenuManager.java @@ -187,7 +187,7 @@ boolean isTempFile(File file) { // File is in temp folder try { File tmpDir = new File(System.getProperty("java.io.tmpdir")); - return file.getCanonicalPath().startsWith(tmpDir.getCanonicalPath()); + return file.getCanonicalFile().toPath().startsWith(tmpDir.getCanonicalFile().toPath()); } catch(IOException ex) { ex.printStackTrace();