Bug 68327

Summary: Notes aren't synchronized between system tray app and Kontact plugin
Product: [Applications] kontact Reporter: Cornelius Schumacher <schumacher>
Component: notesAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: grave CC: code, jsvrp.gw, michaelb
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Cornelius Schumacher 2003-11-15 23:16:35 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

It's easily possible to lose data by using the KNotes plugin in Kontact and the system tray version in parallel:

Type something in an existing note by selecting it from the system tray context menu and typing in the yellow window. Select the same note in Kontact and everything what was typed is lost.
Comment 1 jsvrp.gw 2003-12-11 18:03:40 UTC
I totally agree (using kde 3.2 beta2). It also affects other notes, so it's a very annoying bug. Only workaround is to disable to knotes plugin in kontact.
Comment 2 Stanislav Karchebny 2003-12-13 18:40:06 UTC
Happens here too =\
Comment 3 Daniel Molkentin 2004-01-07 16:10:36 UTC

*** This bug has been marked as a duplicate of 67782 ***
Comment 4 Daniel Molkentin 2004-01-07 16:12:51 UTC
sorry, problem still exists for Kontact => Knotes
Comment 5 Tobias Koenig 2004-01-30 23:18:11 UTC
*** Bug 72799 has been marked as a duplicate of this bug. ***
Comment 6 jsvrp.gw 2004-02-02 15:48:09 UTC
In KDE 3.2 RC1 this bug is not there anymore, so this one should be closed,.

Cheers,

Jeroen
Comment 7 Mathias Homann 2004-02-16 14:34:54 UTC
reappeared in 3.2 release.
Comment 8 Tobias Koenig 2004-07-26 18:26:11 UTC
*** Bug 76152 has been marked as a duplicate of this bug. ***
Comment 9 Stephan Binner 2004-09-01 15:42:14 UTC
Is this fixed with yesterday's knotes plugin backporting from HEAD?
Comment 10 Daniel Molkentin 2004-09-20 14:20:49 UTC
Yes.
Comment 11 Wouter Deconinck 2004-10-21 21:19:09 UTC
This problem still persists when using an IMAP-resource for the notes (kdepim version CVS Oct21, 2004): notes are not synchronized between knotes (hereafter knotes) in the systray and the notes plugin in kontact (hereafter kontact plugin).

Steps to reproduces:
1. Start knotes, kontact plugin
2. Type some text in a new note in knotes
3. Note is not updated in kontact plugin
4. Try the other way round, same problem

Expected result:
Notes should be synchronized, or there should be a method to get them synchronized easily.

I tried this:
Only restarting knotes (systray icon -> quit; Run Command -> knotes) updates the notes there, and only restarting kontact plugin (Select components -> unselect, apply, select, apply) updates the notes shown in kontact.

Notes are apparently written to the IMAP resource, but just not reread when the kontact plugin gets focus again, or when knotes gets focus.

Suggestions:
- I realize that this might create overhead if you have to check on the IMAP resource every time the focus changes to knotes or the kontact plugin.
- Maybe knotes can send a dcop call to the kontact plugin when a note is changed to tell the kontact plugin to update.  Same trick the other way round.  This is not a very good solution either, because other programs that want to read notes will have the same problem and would require a change in the knotes and kontact plugin code...
- Maybe a dcop entry to knotes and the kontact plugin to ask for the last time a note changed...
- Last suggestion: a "refresh notes" button in both apps if working with IMAP resources.  By far the easiest, I guess ;-)

But then again, I am not a programmer, so please forgive me if I am missing something obvious.


Thanks for the truly great work you are doing!
Wouter

PS: I can make this a new bug report if you want.  I just thought that creating a new bug report with exactly the same title would be confusing...
Comment 12 Andreas.von.Rueden 2004-11-06 17:52:01 UTC
With Knotes 3.3.1 and Kontact 1.0.1, notes-plugin 0.1, the problem still exists. This bug should be re-opened.
Comment 13 Jeff Mitchell 2005-06-02 12:32:42 UTC
I have a related problem too. On my KDE 3.4.1 system, if I make a new note in Kontact (1.1.1) with Notes Management plugin (0.5) and KNotes (3.5) open in systray, I have to close KNotes and re-open it for the new note to appear on the desktop. It'd be nice for there to be some kind of push mechanism from kontact->knotes such that new notes or changes to notes from Kontact are pushed to KNotes, which immediately makes the changes in its own view.
Comment 14 MartinG 2006-11-19 16:00:24 UTC
This bug should be reopened, it still appears in kdepim-3.5.5-0.2.fc6: Notes written in Kontact notes plugin will not appear in KNotes, and vica versa. Restarting either app doesn't help.

Related bugs:
bug 118786, bug 104571, bug 90744, bug 92313, bug 76152, bug 97001, bug 72799, bug 105339 (?), bug 89494, bug 93244 (kpilot), bug 113522 (kpilot).
 
The bug is also mentioned here: http://wiki.kde.org/tiki-index.php?page=Quality%20Team%20Kpilot