Commits

Anonymous committed ab25bba

FIX: In some cases 'die on focus lost' wasn't activated again after exiting a dialog.

  • Participants
  • Parent commits 0a13bd6

Comments (0)

Files changed (1)

 	#: the place where we're in the wheel. the new label should be at idx + 1
 	idx = self.circle.index(label)
 	if item is None:
+            self.die_on_focus_lost = True
 	    return None
 	icon, action = item
 	if action is None:
+            self.die_on_focus_lost = True
 	    return None
 	items = [(i.icon, i.action) for i in self.circle]
 	items = items[:idx+1] + [(icon, action)] + items[idx+1:]
             self.editor = ItemEditor(self)
 	item = self.editor.edit(label.icon, label.action)
 	if item is None:
+            self.die_on_focus_lost = True
 	    return None # clicked cancel
 	icon, action = item
 	items = [(i.icon, i.action) for i in self.circle]