diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 50b8fd9b9..ac6d8ce25 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1897,9 +1897,10 @@ var AppIcon = class AppIcon { } if (this._stateChangedId > 0) this.app.disconnect(this._stateChangedId); - if (this._draggable && this._dragging) { - Main.overview.endItemDrag(this); - this.draggable = null; + if (this._draggable) { + if (this._dragging) + Main.overview.endItemDrag(this); + this._draggable = null; } this._stateChangedId = 0; this._removeMenuTimeout();