diff options
Diffstat (limited to 'src/settings')
-rw-r--r-- | src/settings/generalwidget.cpp | 26 | ||||
-rw-r--r-- | src/settings/generalwidget.h | 2 |
2 files changed, 17 insertions, 11 deletions
diff --git a/src/settings/generalwidget.cpp b/src/settings/generalwidget.cpp index 4d853b85..94f8b9c6 100644 --- a/src/settings/generalwidget.cpp +++ b/src/settings/generalwidget.cpp @@ -51,7 +51,7 @@ GeneralWidget::GeneralWidget(QWidget *parent) connect(kcfg_useNewTabPage, SIGNAL(toggled(bool)), this, SLOT(disableHomeSettings(bool))); - disableKGet(); + checkKGetPresence(); } @@ -88,14 +88,20 @@ void GeneralWidget::disableHomeSettings(bool b) setHomeToCurrentPageButton->setEnabled(!b); } -void GeneralWidget::disableKGet() +void GeneralWidget::checkKGetPresence() { - 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); - } + if (KStandardDirs::findExe("kget").isNull()) + { + ReKonfig::setKgetDownload(false); + ReKonfig::setKgetList(false); + kcfg_kgetDownload->setDisabled(true); + kcfg_kgetList->setDisabled(true); + kcfg_kgetDownload->setToolTip(i18n("Install KGet to enable rekonq to use KGet as download manager")); + + } + else + { + kcfg_kgetDownload->setDisabled(false); + kcfg_kgetList->setDisabled(false); + } } diff --git a/src/settings/generalwidget.h b/src/settings/generalwidget.h index 11a112fb..b2cefcfa 100644 --- a/src/settings/generalwidget.h +++ b/src/settings/generalwidget.h @@ -44,7 +44,7 @@ public: void save(); bool changed(); - void disableKGet(); + void checkKGetPresence(); signals: void changed(bool); |