From 47c63757bd138bfb0cc7e64285262ca9ad541987 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sun, 28 Oct 2007 16:40:18 +0000 Subject: [PATCH] 2007-10-28 Gary Burton * src/DisplayTabs/_EnbeddedList.py: Fixed crash when doing a drag and drop with an object that was deleted from a list. issue # 1326 svn: r9261 --- ChangeLog | 4 ++++ src/DisplayTabs/_EmbeddedList.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f7392aab6..d0dc1e46b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-10-28 Gary Burton + * src/DisplayTabs/_EnbeddedList.py: Fixed crash when doing a drag and + drop with an object that was deleted from a list. issue # 1326 + 2007-10-26 Stéphane Charette * src/plugins/NarrativeWeb.py: various: EOL should be
not

, date is now displayed in the user's locale, source references no diff --git a/src/DisplayTabs/_EmbeddedList.py b/src/DisplayTabs/_EmbeddedList.py index a4aff2a6d..a22eb8eae 100644 --- a/src/DisplayTabs/_EmbeddedList.py +++ b/src/DisplayTabs/_EmbeddedList.py @@ -199,7 +199,7 @@ class EmbeddedList(ButtonTab): # if the is same object, we have a move, otherwise, # it is a standard drag-n-drop - if id(self) == selfid: + if id(self) == selfid and self.get_selected() is not None: self._move(row_from, row, obj) else: self._handle_drag(row, obj)