diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-18 19:22:51 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-18 19:22:51 +0200 |
commit | e2f57546558b2d90147cced3beee541e7e1cae9e (patch) | |
tree | ed1f7b355450f2ca45d116e036a02a82e42f3a44 /src/webpluginfactory.cpp | |
parent | Fixed options show recently closed tabs / show recent history (diff) | |
download | rekonq-e2f57546558b2d90147cced3beee541e7e1cae9e.tar.xz |
Faster loading..
Diffstat (limited to 'src/webpluginfactory.cpp')
-rw-r--r-- | src/webpluginfactory.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/webpluginfactory.cpp b/src/webpluginfactory.cpp index 9d7755c5..1e599327 100644 --- a/src/webpluginfactory.cpp +++ b/src/webpluginfactory.cpp @@ -53,14 +53,20 @@ QObject *WebPluginFactory::create(const QString &mimeType, kDebug() << "loading mimeType: " << mimeType; if(mimeType == QString("application/image-preview") ) - { + { + QString url, pos; for(int i = 0; i<argumentNames.count(); ++i) { if(argumentNames.at(i) == QString("url")) { - return new PreviewImage( argumentValues.at(i) ); + url = argumentValues.at(i); + } + if(argumentNames.at(i) == QString("position")) + { + pos = argumentValues.at(i); } } + return new PreviewImage(url, pos); } kDebug() << "No plugins found for" << mimeType; |