Bug 426104 - drag and drop of separators copies them instead of moving (for mak77@supereva.it, r=dietrich)

This commit is contained in:
dietrich@mozilla.com 2008-04-03 09:23:45 -07:00
parent b71cea2932
commit f1155db872

View File

@ -369,7 +369,10 @@ var PlacesUIUtils = {
case PlacesUtils.TYPE_X_MOZ_PLACE_SEPARATOR:
// There is no data in a separator, so copying it just amounts to
// inserting a new separator.
return this.ptm.createSeparator(container, index);
if (copy)
return this.ptm.createSeparator(container, index);
// Move the separator otherwise
return this.ptm.moveItem(data.id, container, index);
break;
default:
if (type == PlacesUtils.TYPE_X_MOZ_URL || type == PlacesUtils.TYPE_UNICODE) {