diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2012-02-13 17:43:17 +0100 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2012-02-17 15:34:15 +0100 |
commit | 99409c9c7e4b7e73115b4737c2bb0ed3e38d45ff (patch) | |
tree | 11745df19d6bb1c4b156147e7bd276d01a4608e3 /src/backends/evolution/EvolutionCalendarSource.cpp | |
parent | fcdd1b265b18738c079372eb297dc11410d32ef1 (diff) |
EDS: always create databases (PTCOM-113)
Always try to create address book or calendar database, because even
if there is a source there's no guarantee that the actual database was
created already; the original logic for only setting this when
explicitly requesting a new database therefore failed in some cases.
Diffstat (limited to 'src/backends/evolution/EvolutionCalendarSource.cpp')
-rw-r--r-- | src/backends/evolution/EvolutionCalendarSource.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backends/evolution/EvolutionCalendarSource.cpp b/src/backends/evolution/EvolutionCalendarSource.cpp index 6c6c4bbd..a5e3dc6a 100644 --- a/src/backends/evolution/EvolutionCalendarSource.cpp +++ b/src/backends/evolution/EvolutionCalendarSource.cpp @@ -202,7 +202,11 @@ void EvolutionCalendarSource::open() string id = getDatabaseID(); ESource *source = findSource(sources, id); - bool onlyIfExists = true; + bool onlyIfExists = false; // always try to create address book, because even if there is + // a source there's no guarantee that the actual database was + // created already; the original logic below for only setting + // this when explicitly requesting a new database + // therefore failed in some cases bool created = false; // Open twice. This solves an issue where Evolution's CalDAV |