From 59d08e16b82eb85e364383c8781e60d5d3f7a3e8 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Wed, 27 Oct 2004 01:09:19 +0000 Subject: [PATCH] Correction for link bug. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20262 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 7 +++++++ GormControlEditor.m | 14 +++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1ef6c5bd..107bc3fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-10-26 21:18 Gregory John Casamento + + * GormControlEditor.m: Added code to call the superclass in + the dragging methods if the type being dragged isn't a formatter. + This was a bug introduced on 10-17. Corrected now. Thanks to + Fabien Vallon for the report. + 2004-10-24 01:13 Gregory John Casamento * Palettes/0Menus/GNUmakefile.preamble diff --git a/GormControlEditor.m b/GormControlEditor.m index 763f8c63..a6219104 100644 --- a/GormControlEditor.m +++ b/GormControlEditor.m @@ -622,8 +622,8 @@ @implementation GormTextFieldEditor - (void) mouseDown: (NSEvent*)theEvent { + // double-clicked -> let's edit if (([theEvent clickCount] == 2) && [parent isOpened]) - // double-clicked -> let's edit { [self editTextField: _editedObject withEvent: theEvent]; @@ -649,6 +649,10 @@ { result = NSDragOperationCopy; } + else + { + result = [super draggingEntered: sender]; + } return result; } @@ -696,6 +700,10 @@ } } } + else + { + [super performDragOperation: sender]; + } return result; } @@ -712,6 +720,10 @@ { result = YES; } + else + { + result = [super prepareForDragOperation: sender]; + } return result; }