From 66e41a18464a17b8f416b3b67d7893485d60d342 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Wed, 12 Jun 2013 20:12:39 +0200 Subject: [PATCH] CreateIndexDialog: Minor code simplification --- src/CreateIndexDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CreateIndexDialog.cpp b/src/CreateIndexDialog.cpp index 33bd5e6c..bc119204 100644 --- a/src/CreateIndexDialog.cpp +++ b/src/CreateIndexDialog.cpp @@ -85,7 +85,7 @@ void CreateIndexDialog::accept() .arg(qobject_cast(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))