if (!Global.isColumnVisible("guid"))
noteTableView.hideColumn(Global.noteTableGuidPosition);
// Check that the note is either synchronized, or in a local notebook
for (int i=0; i<selections.size(); i++) {
QModelIndex index;
int row = selections.get(i).row();
index = noteTableView.proxyModel.index(row, Global.noteTableGuidPosition);
SortedMap<Integer, Object> ix = noteTableView.proxyModel.itemData(index);
String selectedGuid = (String)ix.values().toArray()[0];
Note n = conn.getNoteTable().getNote(selectedGuid, false, false, false, false, false);
if (n.getUpdateSequenceNum() == 0 && !conn.getNotebookTable().isNotebookLocal(n.getNotebookGuid())) {
QMessageBox.critical(this, tr("Please Synchronize") ,tr("Please either synchronize or move any " +
"new notes to a local notebook."));
return;
}
}
// Start building the URLs
for (int i=0; i<selections.size(); i++) {
QModelIndex index;
int row = selections.get(i).row();
index = noteTableView.proxyModel.index(row, Global.noteTableGuidPosition);
SortedMap<Integer, Object> ix = noteTableView.proxyModel.itemData(index);
String selectedGuid = (String)ix.values().toArray()[0];
mime.setText(selectedGuid);