diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-07 15:38:08 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-07 15:38:08 +0200 |
commit | 8499c2d29b082f35ac2eb55f7633e0d4103cefe5 (patch) | |
tree | a85e7ab63f8cc96f71d6aca979c3f8d22ca76086 /examples/imapresource/imapresource.cpp | |
parent | 53d571a4ba75474a6d12d0de6b4059c83578e94b (diff) | |
download | sink-8499c2d29b082f35ac2eb55f7633e0d4103cefe5.tar.gz sink-8499c2d29b082f35ac2eb55f7633e0d4103cefe5.zip |
Avoid using the resource object to remove the data from disk.
...because creating it will potentially start transactions on the
database we're about to remove.
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index aa0fb94..c72579c 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -714,3 +714,8 @@ void ImapResourceFactory::registerAdaptorFactories(Sink::AdaptorFactoryRegistry | |||
714 | registry.registerFactory<Sink::ApplicationDomain::Mail, ImapMailAdaptorFactory>(PLUGIN_NAME); | 714 | registry.registerFactory<Sink::ApplicationDomain::Mail, ImapMailAdaptorFactory>(PLUGIN_NAME); |
715 | registry.registerFactory<Sink::ApplicationDomain::Folder, ImapFolderAdaptorFactory>(PLUGIN_NAME); | 715 | registry.registerFactory<Sink::ApplicationDomain::Folder, ImapFolderAdaptorFactory>(PLUGIN_NAME); |
716 | } | 716 | } |
717 | |||
718 | void ImapResourceFactory::removeDataFromDisk(const QByteArray &instanceIdentifier) | ||
719 | { | ||
720 | ImapResource::removeFromDisk(instanceIdentifier); | ||
721 | } | ||