From 5c359e238f600d13063b75b9fc6cbb9b68e554c4 Mon Sep 17 00:00:00 2001 From: Lindsay Mathieson Date: Thu, 25 Oct 2012 06:39:43 +1000 Subject: Fixes problem with Web Comboxes not dropping down when clicked, this was due to not checking the requested creation type in createExtension(). Removes unneccessary debug output --- src/kspellplugin.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/kspellplugin.cpp') diff --git a/src/kspellplugin.cpp b/src/kspellplugin.cpp index d25ddf9f..6772ef63 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(); + else + return NULL; } Q_EXPORT_PLUGIN2(kwebspellchecker, KWebKitPlatformPlugin); -- cgit v1.2.1