Fix for: 1277: database corroption on delete outside of DisplayTabs while tab open
Introduces the concept of callman.py as one single way to follow handles an interface is interested in. dbguielement.py contains a small base class using that, usable for all windows/ guielements that need to track database changes to handles svn: r12881
This commit is contained in:
@@ -226,7 +226,15 @@ class EditNote(EditPrimary):
|
||||
self.define_ok_button(self.top.get_object('ok'), self.save)
|
||||
self.define_cancel_button(self.top.get_object('cancel'))
|
||||
self.define_help_button(self.top.get_object('help'))
|
||||
|
||||
|
||||
def _connect_db_signals(self):
|
||||
"""
|
||||
Connect any signals that need to be connected.
|
||||
Called by the init routine of the base class (_EditPrimary).
|
||||
"""
|
||||
self._add_db_signal('note-rebuild', self._do_close)
|
||||
self._add_db_signal('note-delete', self.check_for_close)
|
||||
|
||||
def _create_tabbed_pages(self):
|
||||
"""Create the notebook tabs and inserts them into the main window."""
|
||||
notebook = self.top.get_object("note_notebook")
|
||||
|
Reference in New Issue
Block a user