diff options
author | matgic78 <matgic78@gmail.com> | 2009-11-25 15:20:29 +0100 |
---|---|---|
committer | matgic78 <matgic78@gmail.com> | 2009-11-27 16:11:58 +0100 |
commit | 07270fd5b8331cc33a98ff43fbbc72d87a4431a1 (patch) | |
tree | 88dd51ddb1b2cc9f84b7766f981c5901e34c4b73 /src/webpluginfactory.cpp | |
parent | make clicktoflash optionnal (diff) | |
download | rekonq-07270fd5b8331cc33a98ff43fbbc72d87a4431a1.tar.xz |
clicktoflash : cleanup
Diffstat (limited to 'src/webpluginfactory.cpp')
-rw-r--r-- | src/webpluginfactory.cpp | 7 |
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; } |