summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-04 19:49:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-04 19:49:14 +0200
commit1485dacfa2c08253485808249e56b5faabbae18b (patch)
treeaa864221d8e60afb67f1832f049e93fe16502983 /src
parentnew Rekonq icon (diff)
downloadrekonq-1485dacfa2c08253485808249e56b5faabbae18b.tar.xz
WebView dtor
Diffstat (limited to 'src')
-rw-r--r--src/webview.cpp7
-rw-r--r--src/webview.h3
2 files changed, 8 insertions, 2 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index f4e41301..ac6f4566 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -67,6 +67,11 @@ WebView::WebView(QWidget* parent)
}
+WebView::~WebView()
+{
+}
+
+
WebPage *WebView::page()
{
if(!m_page)
@@ -179,7 +184,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
if(!engine.isEmpty())
{
service = KService::serviceByDesktopPath(QString("searchproviders/%1.desktop").arg(engine));
- const QString searchProviderPrefix = *(service->property("Keys").toStringList().begin()) + keywordDelimiter;
+ const QString searchProviderPrefix = *(service->property("Keys").toStringList().begin()) + keywordDelimiter; // FIXME crashed
data.setData(searchProviderPrefix + "some keyword");
a = new KAction(service->name(), this);
a->setIcon(Application::icon(KUrl(data.uri())));
diff --git a/src/webview.h b/src/webview.h
index 55de3ad2..4dc7306d 100644
--- a/src/webview.h
+++ b/src/webview.h
@@ -45,7 +45,8 @@ class WebView : public QWebView
public:
explicit WebView(QWidget *parent = 0);
-
+ ~WebView();
+
WebPage *page();
KUrl url() const;
QString lastStatusBarText() const;