clean some window management bugs

svn: r8888
This commit is contained in:
Benny Malengier
2007-08-29 12:50:37 +00:00
parent fb5541f635
commit 4a2e1058b0
6 changed files with 40 additions and 6 deletions

View File

@@ -108,8 +108,9 @@ class NoteTab(EmbeddedList):
if self.notetype :
note.set_type(self.notetype)
try:
EditNote(self.dbstate, self.uistate, [], note, self.add_callback,
self.callertitle, extratype = [self.notetype])
EditNote(self.dbstate, self.uistate, self.track,
note, self.add_callback,
self.callertitle, extratype = [self.notetype])
except Errors.WindowActiveError:
pass
@@ -123,7 +124,7 @@ class NoteTab(EmbeddedList):
if handle:
note = self.dbstate.db.get_note_from_handle(handle)
try:
EditNote(self.dbstate, self.uistate, [], note,
EditNote(self.dbstate, self.uistate, self.track, note,
self.edit_callback, self.callertitle,
extratype = [self.notetype] )
except Errors.WindowActiveError: