summaryrefslogtreecommitdiff
path: root/src/backends/evolution/EvolutionContactSource.cpp
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2012-02-13 17:43:17 +0100
committerPatrick Ohly <patrick.ohly@intel.com>2012-02-17 15:34:15 +0100
commit99409c9c7e4b7e73115b4737c2bb0ed3e38d45ff (patch)
tree11745df19d6bb1c4b156147e7bd276d01a4608e3 /src/backends/evolution/EvolutionContactSource.cpp
parentfcdd1b265b18738c079372eb297dc11410d32ef1 (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/EvolutionContactSource.cpp')
-rw-r--r--src/backends/evolution/EvolutionContactSource.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backends/evolution/EvolutionContactSource.cpp b/src/backends/evolution/EvolutionContactSource.cpp
index 4c874096..90183d77 100644
--- a/src/backends/evolution/EvolutionContactSource.cpp
+++ b/src/backends/evolution/EvolutionContactSource.cpp
@@ -155,7 +155,11 @@ void EvolutionContactSource::open()
GError *gerror = NULL;
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 address book
+ // therefore failed in some cases
bool created = false;
if (!source) {
// might have been special "<<system>>" or "<<default>>", try that and