mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:40:37 +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
a3603ff386
commit
08f19c72bf
2 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue