Commit 678c22f0 authored by Laurent Montel's avatar Laurent Montel 😁

not necessary to store mpart

parent bb7f702f
......@@ -234,7 +234,6 @@ void FrameManager::openUrl(OpenUrlRequest &request)
if (frame->openUrl(request)) {
request.setWasHandled(true);
}
request.setPart(frame->part());
}
if (!request.openInBackground()) {
......
......@@ -27,8 +27,12 @@
using namespace Akregator;
OpenUrlRequest::OpenUrlRequest(const QUrl &url) : m_frameId(-1), m_url(url),
m_options(None), m_part(), m_inBackground(false), m_wasHandled(false)
OpenUrlRequest::OpenUrlRequest(const QUrl &url)
: m_frameId(-1),
m_url(url),
m_options(None),
m_inBackground(false),
m_wasHandled(false)
{
}
......@@ -100,16 +104,6 @@ void OpenUrlRequest::setOptions(OpenUrlRequest::Options options)
m_options = options;
}
void OpenUrlRequest::setPart(KParts::ReadOnlyPart *part)
{
m_part = part;
}
KParts::ReadOnlyPart *OpenUrlRequest::part() const
{
return m_part;
}
QString OpenUrlRequest::debugInfo() const
{
return QStringLiteral("url=%1 mimeType=%2 newTab=%3 forcesNewWindow=%4 options=%5")
......
......@@ -26,7 +26,6 @@
#define AKREGATOR_OPENURLREQUEST_H
#include <kparts/browserextension.h>
#include <kparts/part.h>
#include <QUrl>
......@@ -73,18 +72,6 @@ public:
bool openInBackground() const;
void setOpenInBackground(bool background);
/**
* The part that was created for a "NewTab" request.
*
* It must be set after creating the tab, so that the initiating
* part can load the URL into the new part. This works only synchronously
* and requires args().serviceType to be set.
*
* @see KParts::BrowserExtension::createNewWindow()
*/
KParts::ReadOnlyPart *part() const;
void setPart(KParts::ReadOnlyPart *part);
QString debugInfo() const;
bool wasHandled() const;
......@@ -97,7 +84,6 @@ private:
KParts::OpenUrlArguments m_args;
KParts::BrowserArguments m_browserArgs;
Options m_options;
QPointer<KParts::ReadOnlyPart> m_part;
bool m_inBackground;
bool m_wasHandled;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment