mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 00:20:48 +00:00
fix occasional exception while dragging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30234 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3c4b83960f
commit
9f1fb9cc7c
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-04-24 Doug Simons <doug.simons@testplant.com>
|
||||
|
||||
* Source/NSOutlineView.m:
|
||||
Fix occasional exception while dragging.
|
||||
|
||||
2010-04-24 Doug Simons <doug.simons@testplant.com>
|
||||
|
||||
* Source/NSWindow.m:
|
||||
|
|
|
@ -1359,7 +1359,7 @@ Also returns the child index relative to this parent. */
|
|||
/* If we have been hovering over an item for more than half a second,
|
||||
* we should expand it.
|
||||
*/
|
||||
if ([lastDragUpdate timeIntervalSinceDate: lastDragChange] >= 0.5)
|
||||
if (lastDragChange != nil && [lastDragUpdate timeIntervalSinceDate: lastDragChange] >= 0.5)
|
||||
{
|
||||
id item = [_items objectAtIndex: row];
|
||||
if ([self isExpandable: item] && ![self isItemExpanded: item])
|
||||
|
|
Loading…
Reference in a new issue