diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-08-18 11:00:27 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-08-18 11:00:27 +0200 |
commit | 5b5b892e5fe524737f8aa1a46083ca4f4b08fa21 (patch) | |
tree | ecc7c756f6f3241c2ca7ab705bec9a514946e5e4 /src/settings/generalwidget.cpp | |
parent | Merge commit 'refs/merge-requests/176' of git://gitorious.org/rekonq/mainline... (diff) | |
download | rekonq-5b5b892e5fe524737f8aa1a46083ca4f4b08fa21.tar.xz |
disableKGet --> checkKGetPresence
let rekonq also reenable it :)
Diffstat (limited to 'src/settings/generalwidget.cpp')
-rw-r--r-- | src/settings/generalwidget.cpp | 26 |
1 files changed, 16 insertions, 10 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); + } } |