Skip to content

Commit

Permalink
CreateIndexDialog: Minor code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
MKleusberg committed Jun 12, 2013
1 parent b16c26f commit 66e41a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CreateIndexDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 66e41a1

Please sign in to comment.