summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;