From 074a4e751eb203001984dc499b0b1fbc52619a58 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Wed, 17 Feb 2010 19:25:04 +0000 Subject: [PATCH] make sure filter releases any db locks it has --- pyfpdb/Filters.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyfpdb/Filters.py b/pyfpdb/Filters.py index 27e5a49d..c8e8e219 100644 --- a/pyfpdb/Filters.py +++ b/pyfpdb/Filters.py @@ -211,6 +211,9 @@ class Filters(threading.Thread): self.Button2.connect("clicked", self.callback['button2'], "clicked") self.Button2.set_sensitive(True) + # make sure any locks on db are released: + self.db.rollback() + def get_vbox(self): """returns the vbox of this thread""" return self.mainVBox