summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-08-18 10:54:50 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-08-18 10:54:50 +0200
commit8a8c8dc44645b606ad8e34568a95924bc4d5ffc9 (patch)
tree662fe991b57e0754e66a77b3d0ee24b22418fe60
parentMerge commit 'refs/merge-requests/175' of git://gitorious.org/rekonq/mainline... (diff)
parent Remove return, formatting++ (diff)
downloadrekonq-8a8c8dc44645b606ad8e34568a95924bc4d5ffc9.tar.xz
Merge commit 'refs/merge-requests/176' of git://gitorious.org/rekonq/mainline into m176
-rw-r--r--src/settings/generalwidget.cpp16
-rw-r--r--src/settings/generalwidget.h1
2 files changed, 17 insertions, 0 deletions
diff --git a/src/settings/generalwidget.cpp b/src/settings/generalwidget.cpp
index 09c9e5c7..4d853b85 100644
--- a/src/settings/generalwidget.cpp
+++ b/src/settings/generalwidget.cpp
@@ -36,6 +36,8 @@
#include "mainwindow.h"
#include "webtab.h"
+//KDE Includes
+#include <kstandarddirs.h>
GeneralWidget::GeneralWidget(QWidget *parent)
: QWidget(parent)
@@ -48,6 +50,8 @@ GeneralWidget::GeneralWidget(QWidget *parent)
disableHomeSettings(ReKonfig::useNewTabPage());
connect(kcfg_useNewTabPage, SIGNAL(toggled(bool)), this, SLOT(disableHomeSettings(bool)));
+
+ disableKGet();
}
@@ -83,3 +87,15 @@ void GeneralWidget::disableHomeSettings(bool b)
kcfg_homePage->setEnabled(!b);
setHomeToCurrentPageButton->setEnabled(!b);
}
+
+void GeneralWidget::disableKGet()
+{
+ if (KStandardDirs::findExe("kget").isNull())
+ {
+ kWarning() << "Install KGet to enable rekonq to use KGet as download manager";
+ ReKonfig::setKgetDownload(false);
+ ReKonfig::setKgetList(false);
+ kcfg_kgetDownload->setDisabled(true);
+ kcfg_kgetList->setDisabled(true);
+ }
+}
diff --git a/src/settings/generalwidget.h b/src/settings/generalwidget.h
index d669fd04..11a112fb 100644
--- a/src/settings/generalwidget.h
+++ b/src/settings/generalwidget.h
@@ -44,6 +44,7 @@ public:
void save();
bool changed();
+ void disableKGet();
signals:
void changed(bool);