Changeset 211

Show
Ignore:
Timestamp:
04/28/08 13:02:31 (8 months ago)
Author:
tal
Message:
The dragging source may be None, so handle that.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • packages/vanilla/trunk/Lib/vanilla/vanillaList.py

    r210 r211  
    107107        # drag from same window 
    108108        window = tableView.window() 
    109         if window is not None and window == draggingSource.window() and vanillaWrapper._selfWindowDropSettings is not None: 
     109        if window is not None and draggingSource is not None and window == draggingSource.window() and vanillaWrapper._selfWindowDropSettings is not None: 
    110110            if vanillaWrapper._selfWindowDropSettings is None: 
    111111                return NSDragOperationNone