mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Checking for "None" drag handlers to prevent errors when clicking certain stacks.
This commit is contained in:
parent
fbcd5d4ec8
commit
b5a305340d
1 changed files with 1 additions and 1 deletions
|
@ -1123,7 +1123,7 @@ class Stack:
|
||||||
if start_drag:
|
if start_drag:
|
||||||
# this handler may start a drag operation
|
# this handler may start a drag operation
|
||||||
r = handler(event)
|
r = handler(event)
|
||||||
if r <= 0:
|
if r is not None and r <= 0:
|
||||||
sound = r == 0
|
sound = r == 0
|
||||||
self.startDrag(event, sound=sound)
|
self.startDrag(event, sound=sound)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue