From 10b77a8305b9350752f45addf495a33812c70b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 5 Jun 2013 14:51:41 +0200 Subject: [PATCH] dash: Minor cleanup https://bugzilla.gnome.org/show_bug.cgi?id=684618 --- js/ui/dash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/dash.js b/js/ui/dash.js index 79636fc49..a916de1ad 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -858,9 +858,9 @@ const Dash = new Lang.Class({ // Remove the drag placeholder if we are not in the // "favorites zone" - if (pos > numFavorites && this._dragPlaceholder) { + if (pos > numFavorites) this._clearDragPlaceholder(); - } + if (!this._dragPlaceholder) return DND.DragMotionResult.NO_DROP;