summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniko <niko>2012-06-10 14:57:48 (GMT)
committerniko <niko>2012-06-10 14:57:48 (GMT)
commit7d1c02ca655e7829fe7b814e2eddd53b1b5c24c8 (patch)
tree1bb14333d1826c9cc91425f61c4bb7ed33d3f9c9
parentde51c45b69e23dfb129e8218436fa17d28d06f34 (diff)
downloadsynckolab-7d1c02ca655e7829fe7b814e2eddd53b1b5c24c8.tar.gz
potential fix for #24948
-rw-r--r--src/chrome/content/synckolab/calendar.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/chrome/content/synckolab/calendar.js b/src/chrome/content/synckolab/calendar.js
index 288d4d7..a2f7e75 100644
--- a/src/chrome/content/synckolab/calendar.js
+++ b/src/chrome/content/synckolab/calendar.js
@@ -400,6 +400,10 @@ com.synckolab.Calendar = {
// we are starting a batch operation here
this.gConfig.calendar.startBatch();
+ if(!this.gConfig.BatchCount) {
+ this.gConfig.BatchCount = 0;
+ }
+ this.gConfig.BatchCount++;
// gCalendar might be invalid if no calendar is selected in the settings
if (this.gConfig) {
@@ -1072,7 +1076,10 @@ com.synckolab.Calendar = {
doneParsing : function () {
// end batch processing
try {
- this.gConfig.calendar.endBatch();
+ if(!this.gConfig.BatchCount && this.gConfig.BatchCount > 0) {
+ this.gConfig.BatchCount--;
+ this.gConfig.calendar.endBatch();
+ }
} catch (ex) {
// might be possible when someone else called endbatch
}