4703: Ensure correct tab is removed when a gramplet is dragged into an empty GrampsBar

svn: r16739
This commit is contained in:
Nick Hall 2011-03-01 16:01:04 +00:00
parent 3eb0df771d
commit 60d1ae57a0

View File

@ -371,6 +371,9 @@ class GrampsBar(gtk.Notebook):
if self.empty:
if isinstance(gramplet, TabGramplet):
self.empty = False
if new_page == 0:
self.remove_page(1)
else:
self.remove_page(0)
else:
return