From: Randy Baumgarte Date: Mon, 9 Apr 2012 12:11:39 +0000 (-0400) Subject: Correct problem where adding a new note from the tray causes the title of the new... X-Git-Tag: version0.1.1~58 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1f242d0256f10a59e7d85c2f9c8eff064b5c815d;p=neighbornote%2FNeighborNote.git Correct problem where adding a new note from the tray causes the title of the new note not to be saved. --- 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.