[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kroupware_branch: kdepim/korganizer
From: Bo Thorsen <bo () sonofthor ! dk>
Date: 2003-06-12 13:49:46
[Download RAW message or body]
CVS commit by thorsen:
Don't tell KMail anything if the note really isn't updated
M +9 -2 kogroupware.cpp 1.1.2.20
--- kdepim/korganizer/kogroupware.cpp #1.1.2.19:1.1.2.20
@@ -407,12 +407,19 @@ QValueList<Note> KOGroupware::notes() co
void KOGroupware::slotNoteNewOrUpdated( const Note& note )
{
- // kdDebug(5850) << "KOGroupware::slotNewOrUpdatedNote( " << note.id << ", " << \
note.text << ")" << endl;
- emit newOrUpdatedNote( note.id, note.geometry, note.color, note.text);
for( QValueList<Note>::Iterator it = mNotes.begin(); it != mNotes.end(); ++it ) {
if( (*it).id == note.id ) {
+ if( *it == note )
+ // Nothing changed
+ return;
+
+ // Update the note
*it = note;
+ emit newOrUpdatedNote( note.id, note.geometry, note.color,
+ note.text, false );
return;
}
}
+ emit newOrUpdatedNote( note.id, note.geometry, note.color,
+ note.text, false );
mNotes.append(note);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic