CreateIndexDialog: Minor code simplification

This commit is contained in:
Martin Kleusberg
2013-06-12 20:12:39 +02:00
parent b16c26f022
commit 66e41a1846

View File

@@ -85,7 +85,7 @@ void CreateIndexDialog::accept()
.arg(qobject_cast<QComboBox*>(ui->tableIndexColumns->cellWidget(i, 2))->currentText()));
}
}
sql.remove(sql.count() - 1, 1); // Remove last comma
sql.chop(1); // Remove last comma
sql.append(");");
if(pdb->executeSQL(sql))