Correct issue with exception on database change in Gramplets

Fixes #10147
This commit is contained in:
prculley 2017-08-11 11:16:36 -05:00 committed by Nick Hall
parent 8a648e7e22
commit 87a54127ff
2 changed files with 2 additions and 4 deletions

View File

@ -399,8 +399,7 @@ class Gramplet:
self.update() self.update()
def _no_db(self): def _no_db(self):
if self.dbstate.db.is_open(): self.disconnect_all() # clear the old signals
self.disconnect_all() # clear the old signals
def get_option_widget(self, label): def get_option_widget(self, label):
""" """

View File

@ -311,8 +311,7 @@ class Callback:
for key in keymap: for key in keymap:
self.__callback_map[signal_name].remove(key) self.__callback_map[signal_name].remove(key)
self.__callback_map[signal_name] = None self.__callback_map[signal_name] = None
self.__callback_map = None self.__callback_map = {}
del self.__callback_map
def emit(self, signal_name, args=tuple()): def emit(self, signal_name, args=tuple()):
""" """