summaryrefslogtreecommitdiff
path: root/src/kspellplugin.cpp
diff options
context:
space:
mode:
authorLindsay Mathieson <lindsay.mathieson@gmail.com>2012-10-25 06:39:43 +1000
committerLindsay Mathieson <lindsay.mathieson@gmail.com>2012-10-25 06:39:43 +1000
commit5c359e238f600d13063b75b9fc6cbb9b68e554c4 (patch)
treeca2e101483cb64716627ad8a82759643e78d9321 /src/kspellplugin.cpp
parentRekonq reports the open/close document events to activity manager daemon. (diff)
downloadrekonq-5c359e238f600d13063b75b9fc6cbb9b68e554c4.tar.xz
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
Diffstat (limited to 'src/kspellplugin.cpp')
-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..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);