From dbeb1e38630bec15e56dc50f004c6a10b29a1a4a Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Mon, 1 Jun 2015 13:14:58 +0200 Subject: [PATCH] Do not manipulate the relation directly when editing This prevents adding values with the wrong type to the relation. --- relational_gui/creator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relational_gui/creator.py b/relational_gui/creator.py index 5c1daad..abf2cf4 100644 --- a/relational_gui/creator.py +++ b/relational_gui/creator.py @@ -106,7 +106,7 @@ class creatorForm(QtWidgets.QDialog): QtWidgets.QMessageBox.information(None, QtWidgets.QApplication.translate( "Form", "Error"), QtWidgets.QApplication.translate("Form", "Unset value in %d,%d!" % (i + 1, j + 1))) return None - r.content.add(tuple(hlist)) + r.insert(tuple(hlist)) return r def accept(self):