summaryrefslogtreecommitdiff
path: root/src/webpluginfactory.cpp
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2009-11-25 15:20:29 +0100
committermatgic78 <matgic78@gmail.com>2009-11-27 16:11:58 +0100
commit07270fd5b8331cc33a98ff43fbbc72d87a4431a1 (patch)
tree88dd51ddb1b2cc9f84b7766f981c5901e34c4b73 /src/webpluginfactory.cpp
parentmake clicktoflash optionnal (diff)
downloadrekonq-07270fd5b8331cc33a98ff43fbbc72d87a4431a1.tar.xz
clicktoflash : cleanup
Diffstat (limited to 'src/webpluginfactory.cpp')
-rw-r--r--src/webpluginfactory.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/webpluginfactory.cpp b/src/webpluginfactory.cpp
index 0d333748..d1c1ccbe 100644
--- a/src/webpluginfactory.cpp
+++ b/src/webpluginfactory.cpp
@@ -86,13 +86,16 @@ QObject *WebPluginFactory::create(const QString &mimeType,
return new PreviewImage(url, title, number, isFavorite);
}
- if(ReKonfig::pluginsEnabled() == 0)
+ if(ReKonfig::pluginsEnabled() == 0) // plugins are enabled
+ {
+ kDebug() << "No plugins found for" << mimeType << ". Falling back to QtWebKit ones...";
return 0;
+ }
if(mimeType == QString("application/x-shockwave-flash")
&& !loadClickToFlash) // the button wasn't clicked
{
- ClickToFlash* ctf = new ClickToFlash(this, url);
+ ClickToFlash* ctf = new ClickToFlash(url);
connect(ctf, SIGNAL(signalLoadClickToFlash(bool)), this, SLOT(setLoadClickToFlash(bool)));
return ctf;
}