Hi! Here's a simple patch for the options dialog.
It keeps the tcp port range fields disabled if the user has checked the firewall checkbox but not the direct connections checkbox. I guess it's useless to modify port range when direct connections are not possible? This patch is available also on the web: http://tumppi.net/licq/tcpoptions.patch Regards, -- # Tuomas Jaakola
Index: optionsdlg.cpp =================================================================== RCS file: /cvsroot/licq/qt-gui/src/optionsdlg.cpp,v retrieving revision 1.128 diff -u -r1.128 optionsdlg.cpp --- optionsdlg.cpp 6 Jan 2003 02:51:28 -0000 1.128 +++ optionsdlg.cpp 6 Jan 2003 16:56:05 -0000 @@ -896,6 +896,7 @@ connect(chkFirewall, SIGNAL(toggled(bool)), SLOT(slot_useFirewall(bool))); new QWidget(gbFirewall); chkTCPEnabled = new QCheckBox(tr("I can receive direct connections"), gbFirewall); + connect(chkTCPEnabled, SIGNAL(toggled(bool)), SLOT(slot_usePortRange(bool))); new QWidget(gbFirewall); QLabel *lbl = new QLabel(tr("Port Range:"), gbFirewall); QWhatsThis::add(lbl, tr("TCP port range for incoming connections.")); @@ -946,6 +947,11 @@ void OptionsDlg::slot_useFirewall(bool b) { chkTCPEnabled->setEnabled(b); + slot_usePortRange(b && chkTCPEnabled->isChecked()); +} + +void OptionsDlg::slot_usePortRange(bool b) +{ spnPortLow->setEnabled(b); spnPortHigh->setEnabled(b); } Index: optionsdlg.h =================================================================== RCS file: /cvsroot/licq/qt-gui/src/optionsdlg.h,v retrieving revision 1.59 diff -u -r1.59 optionsdlg.h --- optionsdlg.h 6 Jan 2003 02:51:27 -0000 1.59 +++ optionsdlg.h 6 Jan 2003 16:56:05 -0000 @@ -144,6 +144,7 @@ void slot_useProxy(bool); void slot_useDockToggled(bool); void slot_useFirewall(bool); + void slot_usePortRange(bool b); void slot_ok(); };