OSDN Git Service

Correct problem where adding a new note from the tray causes the title of the new...
authorRandy Baumgarte <randy@fbn.cx>
Mon, 9 Apr 2012 12:11:39 +0000 (08:11 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Mon, 9 Apr 2012 12:11:39 +0000 (08:11 -0400)
src/cx/fbn/nevernote/NeverNote.java

index 47c5fe8..866e6e2 100644 (file)
@@ -4857,6 +4857,15 @@ public class NeverNote extends QMainWindow{
     @SuppressWarnings("unused")
        private void updateNoteTitle(String guid, String title) {
        listManager.setNoteSynchronized(guid, false);
+       
+       // We do this manually because if we've edited the note in an 
+       // external window we run into the possibility of signal recursion
+       // looping.
+       if (guid.equals(currentNoteGuid)) {
+               browserWindow.titleLabel.blockSignals(true);
+               browserWindow.titleLabel.setText(title);
+               browserWindow.titleLabel.blockSignals(false);
+       }
     }
     // Signal received that note content has changed.  Normally we just need the guid to remove
     // it from the cache.