From 60d1ae57a08b70f641771d401262bdc68fd135cd Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Tue, 1 Mar 2011 16:01:04 +0000 Subject: [PATCH] 4703: Ensure correct tab is removed when a gramplet is dragged into an empty GrampsBar svn: r16739 --- src/gui/grampsbar.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/grampsbar.py b/src/gui/grampsbar.py index 558de94ed..7d2960999 100644 --- a/src/gui/grampsbar.py +++ b/src/gui/grampsbar.py @@ -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)