From b76b1c77be200ca3770b9b703ae5131749f02cb8 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 19 Aug 2010 16:24:55 +0200 Subject: Simpler than I thought, fix kget integration --- src/webview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/webview.cpp') diff --git a/src/webview.cpp b/src/webview.cpp index b710719f..c15478c2 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -47,6 +47,7 @@ #include #include #include +#include // Qt Includes #include @@ -316,7 +317,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) menu.addAction(mainwindow->actionByName(KStandardAction::name(KStandardAction::SaveAs))); - if (ReKonfig::kgetList()) + if (!KStandardDirs::findExe("kget").isNull() && ReKonfig::kgetList()) { a = new KAction(KIcon("kget"), i18n("List All Links"), this); connect(a, SIGNAL(triggered(bool)), page(), SLOT(downloadAllContentsWithKGet())); -- cgit v1.2.1