Small fix for unsaved changes when using save as feature

This commit is contained in:
Torkel Ödegaard 2015-04-27 10:29:04 +02:00
parent ad45b63e79
commit 29a7490af2

View File

@ -37,7 +37,7 @@ function(angular, _, config) {
});
this.ignoreChanges = function() {
if (!self.current) { return true; }
if (!self.current || !self.current.meta) { return true; }
var meta = self.current.meta;
return !meta.canSave || meta.fromScript || meta.fromFile;