Fix bug when server is disconnected (open file-download as -> server is disconnected -> open file)

This commit is contained in:
Julia Radzhabova 2018-05-15 13:57:32 +03:00
parent 14426a4b04
commit 9b618a5dff
3 changed files with 3 additions and 3 deletions

View file

@ -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];
}

View file

@ -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];
}

View file

@ -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];
}