OSDN Git Service

Correct bug where tags were not being refershed after being added.
authorRandy Baumgarte <randy@fbn.cx>
Sun, 31 Oct 2010 19:10:31 +0000 (15:10 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Sun, 31 Oct 2010 19:10:31 +0000 (15:10 -0400)
src/cx/fbn/nevernote/NeverNote.java
src/cx/fbn/nevernote/icons/allNotes.png [deleted file]
src/cx/fbn/nevernote/icons/books.png

index 699e1fa..a1df0c8 100644 (file)
@@ -1497,13 +1497,16 @@ public class NeverNote extends QMainWindow{
                newTag.setName(edit.getTag());
                conn.getTagTable().addTag(newTag, true);
                listManager.getTagIndex().add(newTag);
-               reloadTagTree();
+               reloadTagTree(true);
                
                logger.log(logger.HIGH, "Leaving NeverNote.addTag");
        }
        private void reloadTagTree() {
+               reloadTagTree(false);
+       }
+       private void reloadTagTree(boolean reload) {
                logger.log(logger.HIGH, "Entering NeverNote.reloadTagTree");
-               tagIndexUpdated(false);
+               tagIndexUpdated(reload);
                boolean filter = false;
                listManager.countTagResults(listManager.getNoteIndex());
                if (notebookTree.selectedItems().size() > 0 
@@ -2909,7 +2912,7 @@ public class NeverNote extends QMainWindow{
                } else {
                        refreshEvernoteNote(false);
                }
-               reloadTagTree();
+               reloadTagTree(false);
 
                logger.log(logger.HIGH, "Leaving NeverNote.refreshEvernoteNoteList");
        } 
diff --git a/src/cx/fbn/nevernote/icons/allNotes.png b/src/cx/fbn/nevernote/icons/allNotes.png
deleted file mode 100644 (file)
index c51df09..0000000
Binary files a/src/cx/fbn/nevernote/icons/allNotes.png and /dev/null differ
index 92cd6af..066befd 100644 (file)
Binary files a/src/cx/fbn/nevernote/icons/books.png and b/src/cx/fbn/nevernote/icons/books.png differ