/*\r
- * This file is part of NixNote \r
+ * This file is part of NixNote/NeighborNote \r
* Copyright 2009 Randy Baumgarte\r
* \r
* This file may be licensed under the terms of of the\r
// Delete a tag\r
public void expungeTag(String guid, boolean needsSync) {\r
boolean check;\r
+ Tag t = getTag(guid);\r
\r
\r
NSqlQuery query = new NSqlQuery(db.getConnection());\r
logger.log(logger.MEDIUM, "NoteTags delete failed.");\r
\r
// Add the work to the parent queue\r
- if (needsSync) {\r
+ if (needsSync && t!= null && t.getUpdateSequenceNum() > 0) {\r
DeletedTable del = new DeletedTable(logger, db);\r
del.addDeletedItem(guid, "Tag");\r
}\r