waitCursor(false);
return;
}
} else {
if (fileName.endsWith(".enex")) {
ImportEnex noteReader = new ImportEnex(conn, false);
if (selectedNotebookGUIDs != null && selectedNotebookGUIDs.size() > 0)
noteReader.setNotebookGuid(selectedNotebookGUIDs.get(0));
else
noteReader.setNotebookGuid(listManager.getNotebookIndex().get(0).getGuid());
waitCursor(false);
if (QMessageBox.question(this, tr("Confirmation"),
tr("Create new tags from import?"),
QMessageBox.StandardButton.Yes,
QMessageBox.StandardButton.No) == StandardButton.Yes.value()) {
noteReader.createNewTags = true;
} else
noteReader.createNewTags = false;
waitCursor(true);
noteReader.importData(fileName);
if (noteReader.lastError != 0) {
setMessage(noteReader.getErrorMessage());
logger.log(logger.LOW, "Import problem: " +noteReader.lastError);
waitCursor(false);
return;
}
}