summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLindsay Mathieson <lindsay.mathieson@gmail.com>2012-10-23 18:13:13 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commit65c15a547e61e5f607697e0e4e32c76639998314 (patch)
tree730213d24248ce94ee9a8f046f437200dfd7486a /src
parentFix tab titles managements on empty page titles (diff)
downloadrekonq-65c15a547e61e5f607697e0e4e32c76639998314.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 unnecessary debug output.
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);