record.setGuid(selections.get(i).text(2));
record.setName(selections.get(i).text(0));
tags.add(record);
}
TagMerge mergeDialog = new TagMerge(tags);
mergeDialog.exec();
if (!mergeDialog.okClicked())
return;
String newGuid = mergeDialog.getNewTagGuid();
for (int i=0; i<tags.size(); i++) {
if (!tags.get(i).getGuid().equals(newGuid)) {
List<String> noteGuids = conn.getNoteTable().noteTagsTable.getTagNotes(tags.get(i).getGuid());
for (int j=0; j<noteGuids.size(); j++) {