OSDN Git Service

noteDirty変数をタブブラウザに対応。これにより、タイトルカラー変更やピン付け等の操作をした時にSyncが異なるノートについてしまう問題が修正された。
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / sql / NoteTable.java
index d3219a9..678ea62 100644 (file)
@@ -1340,7 +1340,7 @@ public class NoteTable {
        // Get note meta information
        public void updateNoteMetadata(NoteMetadata meta) {
         NSqlQuery query = new NSqlQuery(db.getConnection());
-               if (!query.prepare("Update Note set titleColor=:color, pinned=:pinned, attributeSourceApplication=:metaString where guid=:guid"))
+               if (!query.prepare("Update Note set titleColor=:color, pinned=:pinned, attributeSourceApplication=:metaString, isDirty=true where guid=:guid"))
                        logger.log(logger.EXTREME, "Note SQL prepare has failed on updateNoteMetadata.");
                query.bindValue(":color", meta.getColor());
                query.bindValue(":pinned", meta.isPinned());