diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-08-19 16:24:55 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-08-19 16:24:55 +0200 |
commit | 43d0ded9013b93be697c07423aa1fc3e7034848a (patch) | |
tree | 9111e76ce40bd318ddc861621369f964c37d2535 /src/webview.cpp | |
parent | Merge commit 'refs/merge-requests/179' of git://gitorious.org/rekonq/mainline... (diff) | |
download | rekonq-43d0ded9013b93be697c07423aa1fc3e7034848a.tar.xz |
Simpler than I thought, fix kget integration
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <KMenu> #include <KActionMenu> #include <ktoolinvocation.h> +#include <KStandardDirs> // Qt Includes #include <QtCore/QDir> @@ -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())); |