diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js index 2d7ca4f0e0..1e0a74d1e3 100644 --- a/js/ui/modalDialog.js +++ b/js/ui/modalDialog.js @@ -84,6 +84,8 @@ var ModalDialog = GObject.registerClass({ this._cinnamonReactive = params.cinnamonReactive; this._destroyOnClose = params.destroyOnClose; + this.connect('destroy', this._onDestroy.bind(this)); + Main.layoutManager.modalDialogGroup.add_child(this); let constraint = new Clutter.BindConstraint({ @@ -369,6 +371,16 @@ var ModalDialog = GObject.registerClass({ } }); } + + /** + * _onDestroy: + * + * This is called when the dialog actor is destroyed, either + * by destroying its container or by explicitly calling this.destroy(). + */ + _onDestroy() { + Main.panelManager.enablePanels(); + } }); /**