diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/settings/generalwidget.cpp | 20 | ||||
-rw-r--r-- | src/settings/generalwidget.h | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/settings/generalwidget.cpp b/src/settings/generalwidget.cpp index 09c9e5c7..62695001 100644 --- a/src/settings/generalwidget.cpp +++ b/src/settings/generalwidget.cpp @@ -36,6 +36,9 @@ #include "mainwindow.h" #include "webtab.h" +//KDE Includes +#include <kstandarddirs.h> + GeneralWidget::GeneralWidget(QWidget *parent) : QWidget(parent) @@ -48,6 +51,8 @@ GeneralWidget::GeneralWidget(QWidget *parent) disableHomeSettings(ReKonfig::useNewTabPage()); connect(kcfg_useNewTabPage, SIGNAL(toggled(bool)), this, SLOT(disableHomeSettings(bool))); + + disableKGet(); } @@ -83,3 +88,18 @@ 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); + } + + return; +} 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); |