diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-24 19:33:28 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-24 19:33:28 +0000 |
commit | c437f19f371b5678e0772a5f922fc3587864ca4e (patch) | |
tree | ab33a9046cd22c2ee69172eac02aa63d2ab7a3a1 /kresources/caldav/resource.cpp | |
parent | 90fb05e4f85dccfda4a6fb0b970f6f5c9f4b67d1 (diff) | |
download | tdepim-c437f19f371b5678e0772a5f922fc3587864ca4e.tar.gz tdepim-c437f19f371b5678e0772a5f922fc3587864ca4e.zip |
Fixed CalDAV crash when event editor left open during automatic reload
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1167492 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/caldav/resource.cpp')
-rw-r--r-- | kresources/caldav/resource.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kresources/caldav/resource.cpp b/kresources/caldav/resource.cpp index 4e1542029..58ea5838e 100644 --- a/kresources/caldav/resource.cpp +++ b/kresources/caldav/resource.cpp @@ -38,6 +38,7 @@ #include "resource.h" #include "reader.h" #include "writer.h" +#include <korganizer/kocore.h> /*========================================================================= | NAMESPACE @@ -143,6 +144,9 @@ bool ResourceCalDav::isSaving() { bool ResourceCalDav::doLoad() { bool syncCache = true; + // Make sure no editor windows are open + if (KOCore::self()->editorWindowOpen() == true) return true; + if ((mLoadingQueueReady == false) || (mLoadingQueue.isEmpty() == false) || (mLoader->running() == true) || (isSaving() == true)) { return true; // Silently fail; the user has obviously not responded to a dialog and we don't need to pop up more of them! } |