Nicolas Cannasse 5 år sedan
förälder
incheckning
2bf14365c4
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      hide/Ide.hx

+ 1 - 1
hide/Ide.hx

@@ -680,7 +680,7 @@ class Ide {
 			fileWatcher.ignoreNextChange(databaseDiff);
 			fileWatcher.ignoreNextChange(databaseDiff);
 			sys.io.File.saveContent(getPath(databaseDiff), toJSON(new cdb.DiffFile().make(originDataBase,database)));
 			sys.io.File.saveContent(getPath(databaseDiff), toJSON(new cdb.DiffFile().make(originDataBase,database)));
 		} else {
 		} else {
-			if( !sys.FileSystem.exists(databaseFile) && fileExists(databaseFile) ) {
+			if( !sys.FileSystem.exists(getPath(databaseFile)) && fileExists(databaseFile) ) {
 				// was loaded from pak, cancel changes
 				// was loaded from pak, cancel changes
 				loadDatabase();
 				loadDatabase();
 				hide.comp.cdb.Editor.refreshAll();
 				hide.comp.cdb.Editor.refreshAll();