diff --git a/www/common/sframe-app-framework.js b/www/common/sframe-app-framework.js index 5b4d075be..526e45678 100644 --- a/www/common/sframe-app-framework.js +++ b/www/common/sframe-app-framework.js @@ -253,6 +253,13 @@ define([ newContent = normalize(newContent); contentUpdate(newContent); } else { + if (!cpNfInner.metadataMgr.getPrivateData().isNewFile) { + // We're getting 'new pad' but there is an existing file + // We don't know exactly why this can happen but under no circumstances + // should we overwrite the content, so lets just try again. + common.gotoURL(); + return; + } console.log('updating title'); title.updateTitle(title.defaultTitle); evOnDefaultContentNeeded.fire();