From 8c092746f0ae4d0f12c9e51b87d19b96def9e1f9 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Thu, 30 Aug 2012 20:46:21 +0000 Subject: [PATCH] Fanchart should be redrawn empty if database changes to nothing svn: r20295 --- src/plugins/view/fanchartview.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/plugins/view/fanchartview.py b/src/plugins/view/fanchartview.py index 470a78863..6817141be 100644 --- a/src/plugins/view/fanchartview.py +++ b/src/plugins/view/fanchartview.py @@ -64,6 +64,7 @@ class FanChartView(NavigationView): nav_group) dbstate.connect('active-changed', self.active_changed) + dbstate.connect('database-changed', self.change_db) self.dbstate = dbstate self.uistate = uistate self.generations = 9 @@ -130,6 +131,13 @@ class FanChartView(NavigationView): # Reset everything but rotation angle (leave it as is) self.update() + def change_db(self, db): + self._change_db(db) + #self.bookmarks.update_bookmarks(self.dbstate.db.get_bookmarks()) + #if self.active: + # self.bookmarks.redraw() + self.update() + def update(self): self.main()