url and port only editable if not direct or automatic

This commit is contained in:
Marc Wäckerlin
2009-04-01 10:35:58 +00:00
parent ecfced822e
commit db91ab65fe

View File

@@ -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());