readd warning dialogue to restart after recreate
after loosing it in merge
This commit is contained in:
parent
de2d810ac5
commit
5f240aabb7
|
@ -416,6 +416,14 @@ class fpdb:
|
||||||
#else:
|
#else:
|
||||||
# for other dbs use same connection as holds global lock
|
# for other dbs use same connection as holds global lock
|
||||||
# self.fdb_lock.fdb.recreate_tables()
|
# self.fdb_lock.fdb.recreate_tables()
|
||||||
|
# TODO: figure out why this seems to be necessary
|
||||||
|
dia_restart = gtk.MessageDialog(parent=None, flags=0, type=gtk.MESSAGE_WARNING,
|
||||||
|
buttons=(gtk.BUTTONS_OK), message_format="Restart fpdb")
|
||||||
|
diastring = "You should now restart fpdb."
|
||||||
|
dia_restart.format_secondary_text(diastring)
|
||||||
|
|
||||||
|
dia_restart.run()
|
||||||
|
dia_restart.destroy()
|
||||||
elif response == gtk.RESPONSE_NO:
|
elif response == gtk.RESPONSE_NO:
|
||||||
print 'User cancelled recreating tables'
|
print 'User cancelled recreating tables'
|
||||||
#if not lock_released:
|
#if not lock_released:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user