- handles wrong header names

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@327 014f5005-505e-4b48-8d0a-63407b615a7c
master
LtWorf 2011-10-13 20:30:06 +07:00
parent 9d12667b11
commit 80cd45cf0c
1 changed files with 4 additions and 2 deletions

@ -88,7 +88,7 @@ class creatorForm(QtGui.QDialog):
header=relation.header(hlist)
except Exception, e:
QtGui.QMessageBox.information(None,QtGui.QApplication.translate("Form", "Error"),"%s\n%s" % (QtGui.QApplication.translate("Form", "Header error!"),e.__str__()) )
return None
r=relation.relation()
r.header=header
@ -103,7 +103,9 @@ class creatorForm(QtGui.QDialog):
self.result_relation=self.create_relation()
QtGui.QDialog.accept(self)
#Doesn't close the window in case of errors
if self.result_relation!=None:
QtGui.QDialog.accept(self)
pass
def reject(self):
self.result_relation=None