summaryrefslogtreecommitdiff
path: root/src/webpluginfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpluginfactory.cpp')
-rw-r--r--src/webpluginfactory.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/webpluginfactory.cpp b/src/webpluginfactory.cpp
index 5ec6ad55..27799ca6 100644
--- a/src/webpluginfactory.cpp
+++ b/src/webpluginfactory.cpp
@@ -56,19 +56,16 @@ QObject *WebPluginFactory::create(const QString &mimeType,
if(mimeType == QString("application/image-preview") )
{
- QString imageUrl, pos;
+ QString imageUrl;
for(int i = 0; i<argumentNames.count(); ++i)
{
if(argumentNames.at(i) == QString("url"))
{
imageUrl = argumentValues.at(i);
- }
- if(argumentNames.at(i) == QString("position"))
- {
- pos = argumentValues.at(i);
+ break;
}
}
- return new PreviewImage(imageUrl, pos);
+ return new PreviewImage(imageUrl);
}
// this let QtWebKit using builtin plugins