Skip to content

Commit

Permalink
Fix #69.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/arjan/backup/gaphor/gaphor/trunk@2097 a8418922-720d-0410-834f-a69b97ada669
  • Loading branch information
amolenaar committed Sep 6, 2007
1 parent 504c9e5 commit 68c4fea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gaphor/ui/mainwindow.py
Expand Up @@ -515,6 +515,11 @@ def tree_view_delete_diagram(self):
'This operation is not undoable!' \
% (diagram.name or '<None>'))
if (m.run() == gtk.RESPONSE_YES):
for i in reversed(diagram.canvas.get_all_items()):
s = i.subject
if s and len(s.presentation) == 1:
s.unlink()
i.unlink
diagram.unlink()
m.destroy()

Expand Down

0 comments on commit 68c4fea

Please sign in to comment.