diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/settings/generalwidget.cpp | 16 | ||||
-rw-r--r-- | src/settings/generalwidget.h | 1 |
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); |