Skip to content

Commit

Permalink
Merge pull request #1677 from Rinzwind/readd-dragdroptransfer-shouldcopy
Browse files Browse the repository at this point in the history
Fix implementors of #transferFrom:event: that no longer add #shouldCopy from the TransferMorph to the SpDragAndDropTransfer
  • Loading branch information
estebanlm authored Nov 29, 2024
2 parents 7b5055b + c4c440e commit a8e3588
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Spec2-Adapters-Morphic/SpMorphicTableAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ SpMorphicTableAdapter >> transferFrom: aTransferMorph event: anEvent [
rowAndColumn := self widget container rowAndColumnIndexContainingPoint: anEvent position.
^ SpDragAndDropTransferToTable new
passenger: aTransferMorph passenger;
shouldCopy: aTransferMorph shouldCopy;
row: (rowAndColumn first ifNil: [ 0 ]);
column: (rowAndColumn second ifNil: [ 0 ]);
yourself
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ SpMorphicTreeTableAdapter >> transferFrom: aTransferMorph event: anEvent [
^ SpDragAndDropTransferToTree new
passenger: aTransferMorph passenger;
row: (rowAndColumn first ifNil: [ 0 ]);
shouldCopy: aTransferMorph shouldCopy;
column: (rowAndColumn second ifNil: [ 0 ]);
target: aTarget;
yourself
Expand Down

0 comments on commit a8e3588

Please sign in to comment.