From 36ac322c477ab070f1850266e0d1c8092b379cc2 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Mon, 17 Mar 2008 01:20:49 +0000 Subject: [PATCH] Fix a case in BShelf where it wouldn't return the error correctly if the replicant was rejected by the shelf. This would cause various incorrect behavior, best observed in the form of Deskbar crashing if you tried to drag and drop a large replicant (i.e. Workspaces) onto it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24418 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Shelf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/Shelf.cpp b/src/kits/interface/Shelf.cpp index ce18762f5a..5dd68398bd 100644 --- a/src/kits/interface/Shelf.cpp +++ b/src/kits/interface/Shelf.cpp @@ -1192,7 +1192,7 @@ BShelf::_AddReplicant(BMessage *data, BPoint *location, uint32 uniqueID) const BPoint point = location ? *location : view->Frame().LeftTop(); replicant = _GetReplicant(data, view, point, dragger, relation); if (replicant == NULL) - send_reply(data, B_ERROR, uniqueID); + return send_reply(data, B_ERROR, uniqueID); } else if (fDisplayZombies && fAllowZombies) zombie = _CreateZombie(data, dragger);