diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cookiejar.cpp | 1 | ||||
-rw-r--r-- | src/webpage.cpp | 7 | ||||
-rw-r--r-- | src/webpage.h | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/cookiejar.cpp b/src/cookiejar.cpp index 7007bc61..bef1c51c 100644 --- a/src/cookiejar.cpp +++ b/src/cookiejar.cpp @@ -56,6 +56,7 @@ CookieJar::CookieJar(QObject* parent) CookieJar::~CookieJar() { + delete m_kcookiejar; } diff --git a/src/webpage.cpp b/src/webpage.cpp index c91b9471..c9a9b840 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -72,7 +72,7 @@ WebPage::WebPage(QObject *parent) : QWebPage(parent) , m_keyboardModifiers(Qt::NoModifier) , m_pressedButtons(Qt::NoButton) - , m_requestedUrl("") + , m_requestedUrl() { setForwardUnsupportedContent(true); @@ -84,6 +84,11 @@ WebPage::WebPage(QObject *parent) } +WebPage::~WebPage() +{ +} + + bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type) { m_requestedUrl = request.url(); diff --git a/src/webpage.h b/src/webpage.h index a8efb95a..a000a663 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -49,7 +49,8 @@ class WebPage : public QWebPage public: explicit WebPage(QObject *parent = 0); - + ~WebPage(); + public slots: void manageNetworkErrors(QNetworkReply* reply); |