EOFError [Ran out of input] in Clipboard (#411)

[EOFError: Ran out of input] for Clipboard when you drag and
drop the bolded lines in selected tabs of Person Edit

Attempt to drag and drop any of the "bolded lines" in the Events or
Names tabs into the clipboard window. The unbolded lines drag and drop
ok.

Fixes #8788.
This commit is contained in:
Josip 2017-06-04 20:08:27 +02:00 committed by Nick Hall
parent e01a8602b6
commit bf634ee8e8

View File

@ -1314,6 +1314,7 @@ class ClipboardListView:
# Just select the first match.
wrapper_class = self._target_type_to_wrapper_class_map[
str(possible_wrappers[0])]
try:
o = wrapper_class(self.dbstate, sel_data)
if title:
o._title = title
@ -1362,6 +1363,8 @@ class ClipboardListView:
# remember time for double drop workaround.
self._previous_drop_time = realTime
return o_list
except EOFError:
return None
# proxy methods to provide access to the real widget functions.