Bug 70132 - Saving removes the changes made to daybook/journal part
Summary: Saving removes the changes made to daybook/journal part
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-11 15:11 UTC by Teemu Rytilahti
Modified: 2004-01-16 15:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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();
 }