for now revert "comment out close of fpdb after db recreate, I don't see how it helps"
I could reproduce the bug so until its fixed I want to keep the quit-on-recreate
This reverts commit 45fa170758
.
This commit is contained in:
parent
79043988c2
commit
2bd11661e3
|
@ -416,18 +416,12 @@ class fpdb:
|
||||||
# TODO: figure out why this seems to be necessary
|
# TODO: figure out why this seems to be necessary
|
||||||
dia_restart = gtk.MessageDialog(parent=self.window, flags=0, type=gtk.MESSAGE_WARNING,
|
dia_restart = gtk.MessageDialog(parent=self.window, flags=0, type=gtk.MESSAGE_WARNING,
|
||||||
buttons=(gtk.BUTTONS_OK), message_format="Restart fpdb")
|
buttons=(gtk.BUTTONS_OK), message_format="Restart fpdb")
|
||||||
|
diastring = "Fpdb now needs to close. Please restart it."
|
||||||
|
dia_restart.format_secondary_text(diastring)
|
||||||
|
|
||||||
# sc: I don't see the need for this closedown - if it is a problem let me know
|
dia_restart.run()
|
||||||
# and I will look into it .... (if there is a problem with db re-create I
|
dia_restart.destroy()
|
||||||
# would expect it to be before here, i.e. maybe user needs to restart before
|
self.quit(None, None)
|
||||||
# the re-create. Once here everything should be ok.)
|
|
||||||
# The recreate will not work if autoimport is running! Other than that it
|
|
||||||
# should work.
|
|
||||||
#diastring = "Fpdb now needs to close. Please restart it."
|
|
||||||
#dia_restart.format_secondary_text(diastring)
|
|
||||||
#dia_restart.run()
|
|
||||||
#dia_restart.destroy()
|
|
||||||
#self.quit(None, None)
|
|
||||||
elif response == gtk.RESPONSE_NO:
|
elif response == gtk.RESPONSE_NO:
|
||||||
self.release_global_lock()
|
self.release_global_lock()
|
||||||
print 'User cancelled recreating tables'
|
print 'User cancelled recreating tables'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user