[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    proko2: kdepim/kresources/kolab/knotes
From:       David Faure <faure () kde ! org>
Date:       2004-07-05 15:37:57
Message-ID: 20040705153757.3D3C499AA () office ! kde ! org
[Download RAW message or body]

CVS commit by faure: 

registerNote() is needed from load() though (like in resourcelocal).
This finally makes the notes appear on loading.


  M +6 -5      resourcekolab.cpp   1.1.2.14


--- kdepim/kresources/kolab/knotes/resourcekolab.cpp  #1.1.2.13:1.1.2.14
@@ -154,5 +154,9 @@ bool ResourceKolab::load()
   }
 
-  kdDebug() << k_funcinfo << " - done" << endl;
+  KCal::Journal::List journals = mCalendar.journals();
+  KCal::Journal::List::ConstIterator it;
+  for ( it = journals.begin(); it != journals.end(); ++it )
+    manager()->registerNote( this, *it );
+
   return rc;
 }
@@ -189,8 +193,5 @@ bool ResourceKolab::addNote( KCal::Journ
   // Find out if this note was previously stored in KMail
   bool newNote = subresource.isEmpty();
-
-  if ( !newNote ) {
     mCalendar.addJournal( journal );
-  }
 
   QString resource =


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic