Skip to content

Commit 66e41a1

Browse files
committed
CreateIndexDialog: Minor code simplification
1 parent b16c26f commit 66e41a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CreateIndexDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void CreateIndexDialog::accept()
8585
.arg(qobject_cast<QComboBox*>(ui->tableIndexColumns->cellWidget(i, 2))->currentText()));
8686
}
8787
}
88-
sql.remove(sql.count() - 1, 1); // Remove last comma
88+
sql.chop(1); // Remove last comma
8989
sql.append(");");
9090

9191
if(pdb->executeSQL(sql))

0 commit comments

Comments
 (0)