summaryrefslogtreecommitdiff
path: root/src/webpluginfactory.cpp
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2009-11-22 16:50:27 +0100
committermatgic78 <matgic78@gmail.com>2009-11-27 16:11:58 +0100
commiteaa712d929127d252efd13522a6b76ea01c862a4 (patch)
tree41d7c1adf17d07296bb9e104fe0bb14fbb8f549a /src/webpluginfactory.cpp
parentclicktoflash : step 2 make it work when there are more than one plugin in the... (diff)
downloadrekonq-eaa712d929127d252efd13522a6b76ea01c862a4.tar.xz
make clicktoflash optionnal
Diffstat (limited to 'src/webpluginfactory.cpp')
-rw-r--r--src/webpluginfactory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webpluginfactory.cpp b/src/webpluginfactory.cpp
index 1478339b..0d333748 100644
--- a/src/webpluginfactory.cpp
+++ b/src/webpluginfactory.cpp
@@ -29,6 +29,7 @@
#include "webpluginfactory.moc"
// Local Includes
+#include "rekonq.h"
#include "application.h"
#include "mainwindow.h"
#include "previewimage.h"
@@ -85,6 +86,9 @@ QObject *WebPluginFactory::create(const QString &mimeType,
return new PreviewImage(url, title, number, isFavorite);
}
+ if(ReKonfig::pluginsEnabled() == 0)
+ return 0;
+
if(mimeType == QString("application/x-shockwave-flash")
&& !loadClickToFlash) // the button wasn't clicked
{