From 8499c2d29b082f35ac2eb55f7633e0d4103cefe5 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 7 Oct 2016 15:38:08 +0200 Subject: 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. --- examples/imapresource/imapresource.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples/imapresource/imapresource.cpp') 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 registry.registerFactory(PLUGIN_NAME); registry.registerFactory(PLUGIN_NAME); } + +void ImapResourceFactory::removeDataFromDisk(const QByteArray &instanceIdentifier) +{ + ImapResource::removeFromDisk(instanceIdentifier); +} -- cgit v1.2.3