From 51a51dc8921d7399b55be1be77e8b229f73766d6 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Sun, 20 Jun 2010 18:07:44 +0200 Subject: [PATCH] readd warning dialogue to restart after recreate after loosing it in merge --- pyfpdb/fpdb.pyw | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyfpdb/fpdb.pyw b/pyfpdb/fpdb.pyw index 7ac9c4f8..19b42501 100755 --- a/pyfpdb/fpdb.pyw +++ b/pyfpdb/fpdb.pyw @@ -412,6 +412,14 @@ class fpdb: #else: # for other dbs use same connection as holds global lock # 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: print 'User cancelled recreating tables' #if not lock_released: