summaryrefslogtreecommitdiffstats
path: root/src/libraries/qtopiamail/qmailstore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libraries/qtopiamail/qmailstore.cpp')
-rw-r--r--src/libraries/qtopiamail/qmailstore.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libraries/qtopiamail/qmailstore.cpp b/src/libraries/qtopiamail/qmailstore.cpp
index dea45005..4b7126b4 100644
--- a/src/libraries/qtopiamail/qmailstore.cpp
+++ b/src/libraries/qtopiamail/qmailstore.cpp
@@ -152,6 +152,7 @@
\value ContentInaccessible The operation failed because the content data cannot be accessed by the mail store.
\value NotYetImplemented The operation failed because the mail store does not yet implement the operation.
\value FrameworkFault The operation failed because the mail store encountered an error in performing the operation.
+ \value StorageInaccessible The operation failed because the mail storage mechanism cannot be accessed by the mail store.
*/
/*!
@@ -1078,7 +1079,12 @@ QMailStore* QMailStore::instance()
static bool init = false;
if (!init) {
init = true;
- QMailStoreInstance()->d->initialize();
+ QMailStore *store(QMailStoreInstance());
+ store->d->initialize();
+ if (initializationState() == QMailStore::InitializationFailed) {
+ delete store->d;
+ store->d = new QMailStoreNullImplementation(store);
+ }
}
return QMailStoreInstance();
}