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 | |
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 :)
-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); |