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,7 +371,10 @@ class GrampsBar(gtk.Notebook):
if self.empty:
if isinstance(gramplet, TabGramplet):
self.empty = False
self.remove_page(0)
if new_page == 0:
self.remove_page(1)
else:
self.remove_page(0)
else:
return
label = self.__create_tab_label(gramplet)