[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise/kdepim/kresources/kolab/kcal
From: Sergio Luis Martins <iamsergio () gmail ! com>
Date: 2010-07-22 17:32:32
Message-ID: 20100722173232.10507AC855 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1153166 by smartins:
cleanup if we go through an error code path too. MERGE: none
M +5 -1 resourcekolab.cpp
--- branches/kdepim/enterprise/kdepim/kresources/kolab/kcal/resourcekolab.cpp #1153165:1153166
@@ -607,13 +607,17 @@
}
}
- if ( subResource.isEmpty() )
+ if ( subResource.isEmpty() ) {
+ endAddingIncidences(); // cleanup
+ kdDebug(5650) << "ResourceKolab: subResource is empty" << endl;
return false;
+ }
mNewIncidencesMap.insert( uid, subResource );
if ( !sendKMailUpdate( incidence, subResource, sernum ) ) {
kdError(5650) << "Communication problem in ResourceKolab::addIncidence()\n";
+ endAddingIncidences(); // cleanup
return false;
} else {
// KMail is doing it's best to add the event now, put a sticker on it,
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic