From ae92e04e8367ea967da3b71554544d183dd542df Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 7 May 2008 21:30:00 +0000 Subject: [PATCH] Bug fix: when you load a particular note (or note revision) in its own window, and that note is a startup note, it shows up in the note tree twice. --- view/Main_page.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/view/Main_page.py b/view/Main_page.py index f2e8943..d7ae718 100644 --- a/view/Main_page.py +++ b/view/Main_page.py @@ -66,6 +66,8 @@ class Main_page( Page ): u"creation" : note.creation, } for note in notes ] + root_notes = startup_notes + ( notes and [ note for note in notes if note.object_id not in startup_note_ids ] or [] ) + def json( string ): return escape( unicode( Json( string ) ), quote = True ) @@ -150,7 +152,7 @@ class Main_page( Page ): hide_toolbar = parent_id or not notebook.read_write ), notebook, - startup_notes + ( notes and notes or [] ), + root_notes, recent_notes, total_notes_count, ),