From 65c15a547e61e5f607697e0e4e32c76639998314 Mon Sep 17 00:00:00 2001 From: Lindsay Mathieson Date: Tue, 23 Oct 2012 18:13:13 +0200 Subject: Fixes problem with Web Comboxes not dropping down when clicked, this was due to not checking the requested creation type in createExtension() Removes unnecessary debug output. --- src/kspellplugin.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/kspellplugin.cpp b/src/kspellplugin.cpp index d25ddf9f..1186eb44 100644 --- a/src/kspellplugin.cpp +++ b/src/kspellplugin.cpp @@ -40,8 +40,6 @@ KWebSpellChecker::KWebSpellChecker() { m_speller = new Sonnet::Speller(); - kDebug() << "!!! Client = " << m_speller->defaultClient() << endl; - kDebug() << "!!! Language = " << m_speller->defaultLanguage() << endl; } KWebSpellChecker::~KWebSpellChecker() @@ -187,9 +185,12 @@ bool KWebKitPlatformPlugin::supportsExtension(Extension ext) const return ext == SpellChecker; } -QObject* KWebKitPlatformPlugin::createExtension(Extension) const +QObject* KWebKitPlatformPlugin::createExtension(Extension ext) const { - return new KWebSpellChecker(); + if (ext == SpellChecker) + return new KWebSpellChecker(); + + return NULL; } Q_EXPORT_PLUGIN2(kwebspellchecker, KWebKitPlatformPlugin); -- cgit v1.2.1