diff --git a/apps/documenteditor/main/app/view/FileMenu.js b/apps/documenteditor/main/app/view/FileMenu.js index 03eb65487..ec5073524 100644 --- a/apps/documenteditor/main/app/view/FileMenu.js +++ b/apps/documenteditor/main/app/view/FileMenu.js @@ -332,7 +332,7 @@ define([ if ( menu ) { var item = this._getMenuItem(menu), panel = this.panels[menu]; - if ( item.isDisabled() ) { + if ( item.isDisabled() || !item.isVisible()) { item = this._getMenuItem(defMenu); panel = this.panels[defMenu]; } diff --git a/apps/presentationeditor/main/app/view/FileMenu.js b/apps/presentationeditor/main/app/view/FileMenu.js index 88afa3a0b..cc7ac1a13 100644 --- a/apps/presentationeditor/main/app/view/FileMenu.js +++ b/apps/presentationeditor/main/app/view/FileMenu.js @@ -322,7 +322,7 @@ define([ if ( menu ) { var item = this._getMenuItem(menu), panel = this.panels[menu]; - if ( item.isDisabled() ) { + if ( item.isDisabled() || !item.isVisible()) { item = this._getMenuItem(defMenu); panel = this.panels[defMenu]; } diff --git a/apps/spreadsheeteditor/main/app/view/FileMenu.js b/apps/spreadsheeteditor/main/app/view/FileMenu.js index c00b31a93..b5f1b9149 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenu.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenu.js @@ -311,7 +311,7 @@ define([ if ( menu ) { var item = this._getMenuItem(menu), panel = this.panels[menu]; - if ( item.isDisabled() ) { + if ( item.isDisabled() || !item.isVisible()) { item = this._getMenuItem(defMenu); panel = this.panels[defMenu]; }