Fanchart should be redrawn empty if database changes to nothing

svn: r20295
This commit is contained in:
Benny Malengier 2012-08-30 20:46:21 +00:00
parent cc58908d34
commit 8c092746f0

View File

@ -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()