diff --git a/js/ui/panel.js b/js/ui/panel.js index eb1e4a378..286699516 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -408,9 +408,9 @@ AppMenuButton.prototype = { }, _onQuit: function() { - if (this._focusedApp == null) + if (this._targetApp == null) return; - this._focusedApp.request_quit(); + this._targetApp.request_quit(); }, _onAppStateChanged: function(tracker, app) {