diff --git a/apps/common/main/lib/view/OpenDialog.js b/apps/common/main/lib/view/OpenDialog.js index 89ae9038a..1157b7184 100644 --- a/apps/common/main/lib/view/OpenDialog.js +++ b/apps/common/main/lib/view/OpenDialog.js @@ -172,7 +172,8 @@ define([ }); } else { this.initCodePages(); - this.updatePreview(); + if (this.preview) + this.updatePreview(); this.onPrimary = function() { me._handleInput('ok'); return false;