summaryrefslogtreecommitdiffstats
path: root/src/core/custom_url_scheme_handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/custom_url_scheme_handler.cpp')
-rw-r--r--src/core/custom_url_scheme_handler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/custom_url_scheme_handler.cpp b/src/core/custom_url_scheme_handler.cpp
index a8701a5d4..edc8000c9 100644
--- a/src/core/custom_url_scheme_handler.cpp
+++ b/src/core/custom_url_scheme_handler.cpp
@@ -39,7 +39,6 @@
CustomUrlSchemeHandler::CustomUrlSchemeHandler(const QByteArray &scheme)
: m_scheme(scheme)
- , m_protocolHandler(new CustomProtocolHandler(this))
{
}
@@ -57,7 +56,8 @@ void CustomUrlSchemeHandler::setScheme(const QByteArray &scheme)
m_scheme = scheme;
}
-CustomProtocolHandler *CustomUrlSchemeHandler::protocolHandler()
+CustomProtocolHandler *CustomUrlSchemeHandler::createProtocolHandler()
{
- return m_protocolHandler.data();
+ // Will be owned by the JobFactory.
+ return new CustomProtocolHandler(this);
}