From 1f242d0256f10a59e7d85c2f9c8eff064b5c815d Mon Sep 17 00:00:00 2001 From: Randy Baumgarte Date: Mon, 9 Apr 2012 08:11:39 -0400 Subject: [PATCH] Correct problem where adding a new note from the tray causes the title of the new note not to be saved. --- src/cx/fbn/nevernote/NeverNote.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cx/fbn/nevernote/NeverNote.java b/src/cx/fbn/nevernote/NeverNote.java index 47c5fe8..866e6e2 100644 --- a/src/cx/fbn/nevernote/NeverNote.java +++ b/src/cx/fbn/nevernote/NeverNote.java @@ -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. -- 2.11.0