Skip to content

Commit

Permalink
Fix crash when changing referential
Browse files Browse the repository at this point in the history
  • Loading branch information
vtexier committed Jan 30, 2016
1 parent 15f5178 commit 9b6132a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sakia/gui/community_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def __init__(self, app, status_label, label_icon):
self.tab_identities.view_in_wot.connect(lambda: self.tabs.setCurrentWidget(self.tab_wot.widget))
self.tab_history.view_in_wot.connect(self.tab_wot.draw_graph)
self.tab_history.view_in_wot.connect(lambda: self.tabs.setCurrentWidget(self.tab_wot.widget))
self.tab_identities.money_sent.connect(lambda: self.tab_history.widget.table_history.model().sourceModel().refresh_transfers())
self.tab_wot.money_sent.connect(lambda: self.tab_history.widget.table_history.model().sourceModel().refresh_transfers())
self.tab_identities.money_sent.connect(lambda: self.tab_history.ui.table_history.model().sourceModel().refresh_transfers())
self.tab_wot.money_sent.connect(lambda: self.tab_history.ui.table_history.model().sourceModel().refresh_transfers())

self.tabs.addTab(self.tab_history.widget,
QIcon(':/icons/tx_icon'),
Expand Down Expand Up @@ -306,8 +306,8 @@ def showEvent(self, event):
self.refresh_status()

def referential_changed(self):
if self.community and self.tab_history.table_history.model():
self.tab_history.table_history.model().sourceModel().refresh_transfers()
if self.community and self.tab_history.ui.table_history.model():
self.tab_history.ui.table_history.model().sourceModel().refresh_transfers()
self.tab_history.refresh_balance()
self.tab_informations.refresh()

Expand Down

0 comments on commit 9b6132a

Please sign in to comment.