From de0f16a6fc519e49bde243333d78321e5b2d60d6 Mon Sep 17 00:00:00 2001 From: lotodore Date: Wed, 10 Oct 2007 12:06:47 +0000 Subject: [PATCH] Disable SCTP/IPv6 option if not available. --- src/gui/qt/settingsdialog/settingsdialogimpl.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp index ac312bf7..be398a20 100644 --- a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp +++ b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp @@ -202,8 +202,13 @@ void settingsDialogImpl::exec() { spinBox_logStoreDuration->setValue(myConfig->readConfigInt("LogStoreDuration")); comboBox_logInterval->setCurrentIndex(myConfig->readConfigInt("LogInterval")); - checkBox_useIpv6->setEnabled(socket_has_ipv6()); - checkBox_useSctp->setEnabled(socket_has_sctp()); + bool tmpHasIpv6 = socket_has_ipv6(); + bool tmpHasSctp = socket_has_sctp(); + checkBox_useIpv6->setEnabled(tmpHasIpv6); + checkBox_useSctp->setEnabled(tmpHasSctp); + checkBox_InternetServerUseIpv6->setEnabled(tmpHasIpv6); + checkBox_InternetServerUseSctp->setEnabled(tmpHasSctp); + checkBox_IRCServerUseIpv6->setEnabled(tmpHasIpv6); //Manual Blinds Order Dialog (local) myManualBlindsList = myConfig->readConfigIntList("ManualBlindsList");