summaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/guiSQLiteStudio/constraints/tableforeignkeypanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/constraints/tableforeignkeypanel.cpp')
-rw-r--r--SQLiteStudio3/guiSQLiteStudio/constraints/tableforeignkeypanel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/SQLiteStudio3/guiSQLiteStudio/constraints/tableforeignkeypanel.cpp b/SQLiteStudio3/guiSQLiteStudio/constraints/tableforeignkeypanel.cpp
index 60da220..7354997 100644
--- a/SQLiteStudio3/guiSQLiteStudio/constraints/tableforeignkeypanel.cpp
+++ b/SQLiteStudio3/guiSQLiteStudio/constraints/tableforeignkeypanel.cpp
@@ -327,7 +327,6 @@ void TableForeignKeyPanel::storeConfiguration()
QCheckBox* check = nullptr;
QComboBox* combo = nullptr;
SqliteIndexedColumn* idxCol = nullptr;
- QString name;
for (int i = 0; i < totalColumns; i++)
{
// Local column
@@ -352,7 +351,7 @@ void TableForeignKeyPanel::storeConfiguration()
storeCondition(SqliteForeignKey::Condition::DELETE, ui->onDeleteCombo->currentText());
if (ui->onUpdateCheckBox->isChecked())
- storeCondition(SqliteForeignKey::Condition::UPDATE, ui->onDeleteCombo->currentText());
+ storeCondition(SqliteForeignKey::Condition::UPDATE, ui->onUpdateCombo->currentText());
if (ui->matchCheckBox->isChecked())
storeMatchCondition(ui->matchCombo->currentText());