stop sqlite&postgres from doing except _mysql....
sqlite gives another error on quit unfortunately
This commit is contained in:
parent
04ec51d7c1
commit
d208d627a4
|
@ -844,11 +844,16 @@ class fpdb:
|
||||||
#FIXME get two "quitting normally" messages, following the addition of the self.window.destroy() call
|
#FIXME get two "quitting normally" messages, following the addition of the self.window.destroy() call
|
||||||
print "Quitting normally"
|
print "Quitting normally"
|
||||||
# TODO: check if current settings differ from profile, if so offer to save or abort
|
# TODO: check if current settings differ from profile, if so offer to save or abort
|
||||||
|
|
||||||
|
if self.db.backend==self.db.MYSQL_INNODB:
|
||||||
try:
|
try:
|
||||||
if self.db is not None and self.db.connected:
|
if self.db is not None and self.db.connected:
|
||||||
self.db.disconnect()
|
self.db.disconnect()
|
||||||
except _mysql_exceptions.OperationalError: # oh, damn, we're already disconnected
|
except _mysql_exceptions.OperationalError: # oh, damn, we're already disconnected
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
|
if self.db is not None and self.db.connected:
|
||||||
|
self.db.disconnect()
|
||||||
self.statusIcon.set_visible(False)
|
self.statusIcon.set_visible(False)
|
||||||
|
|
||||||
self.window.destroy() # explicitly destroy to allow child windows to close cleanly
|
self.window.destroy() # explicitly destroy to allow child windows to close cleanly
|
||||||
|
|
Loading…
Reference in New Issue
Block a user