summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kspellplugin.cpp9
1 files 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);