Bug 70132

Summary: Saving removes the changes made to daybook/journal part
Product: [Applications] korganizer Reporter: Teemu Rytilahti <tpr>
Component: generalAssignee: Cornelius Schumacher <schumacher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Teemu Rytilahti 2003-12-11 15:11:59 UTC
Version:           3.2 beta2 (using KDE 3.1.94 (CVS >= 20031206), compiled sources)
Compiler:          gcc version 3.2.3 (Debian)
OS:          Linux (i686) release 2.6.0-test11

This happens sometimes when I have modified today's journal entry and then trying to save it. It just reverts to the saved/old one.
Comment 1 Teemu Rytilahti 2003-12-15 11:47:34 UTC
I think I found a way how to bypass this. When you've completed the writing, just change a day (and change back) and save. It won't revert then.
Comment 2 Reinhold Kainhofer 2004-01-16 15:39:20 UTC
Subject: osnabrueck_branch: kdepim/korganizer

CVS commit by kainhofe: 

Write journals to the calendar already while editing. Otherwise saving the calendar while a journal view is visible discards all changes (as they haven't been commited to the calendar yet, but the calendar is reloaded after saving).

CCMAIL: 70132-done@bugs.kde.org


  M +2 -0      journalentry.cpp   1.18.2.1


--- kdepim/korganizer/journalentry.cpp  #1.18:1.18.2.1
@@ -94,4 +94,5 @@ void JournalEntry::setDirty()
 {
   mDirty = true;
+  writeJournal();
 //  kdDebug(5850) << "JournalEntry::setDirty()" << endl;
 }
@@ -101,4 +102,5 @@ void JournalEntry::clear()
   mJournal = 0;
   mEditor->setText("");
+  writeJournal();
 }