From db91ab65fe5b0aa778bc84867bc3f91bbe8a5f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 1 Apr 2009 10:35:58 +0000 Subject: [PATCH] url and port only editable if not direct or automatic --- proxyface/gui/proxy.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proxyface/gui/proxy.hxx b/proxyface/gui/proxy.hxx index bf5d69a..fbc2f64 100644 --- a/proxyface/gui/proxy.hxx +++ b/proxyface/gui/proxy.hxx @@ -97,6 +97,11 @@ class Proxy: public QDialog, public Ui::Proxy { .arg(QNetworkProxy::applicationProxy().port())); } + void on__type_currentIndexChanged(int index) { + _url->setEnabled(index!=0); + _port->setEnabled(index!=0); + } + void on__save_clicked(bool=false) { QSettings s("SwissSign", "ProxySettings"); s.setValue("default-type", _type->currentIndex());