make sure filter releases any db locks it has

This commit is contained in:
sqlcoder 2010-02-17 19:25:04 +00:00
parent 797f04aaab
commit 074a4e751e

View File

@ -211,6 +211,9 @@ class Filters(threading.Thread):
self.Button2.connect("clicked", self.callback['button2'], "clicked") self.Button2.connect("clicked", self.callback['button2'], "clicked")
self.Button2.set_sensitive(True) self.Button2.set_sensitive(True)
# make sure any locks on db are released:
self.db.rollback()
def get_vbox(self): def get_vbox(self):
"""returns the vbox of this thread""" """returns the vbox of this thread"""
return self.mainVBox return self.mainVBox