2006-09-25 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsDBCallback.py: catch db transaction problem * src/GrampsCfg.py: reset PORT_WARN when TRANSACTION re-enabled * src/QuestionDialog.py: sync changes to config value * src/GrampsLogger/_ErrorReportAssistant.py: fix typo svn: r7330
This commit is contained in:
@@ -106,6 +106,9 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
|
||||
tlabel, _('Preferences'), None)
|
||||
|
||||
panel = gtk.Notebook()
|
||||
|
||||
self.original = Config.get(Config.TRANSACTIONS)
|
||||
|
||||
self.window.vbox.pack_start(tlabel, padding=12)
|
||||
self.window.vbox.add(panel)
|
||||
self.window.connect('response',self.done)
|
||||
@@ -128,6 +131,8 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
|
||||
self.show()
|
||||
|
||||
def done(self, obj, value):
|
||||
if not self.original and Config.get(Config.TRANSACTIONS):
|
||||
Config.set(Config.PORT_WARN, True)
|
||||
self.close()
|
||||
|
||||
def add_researcher_panel(self):
|
||||
|
Reference in New Issue
Block a user