Fixed incorrect TCP checksum when it is overrided

Fixes issue 58
This commit is contained in:
Srivats P. 2011-12-22 19:29:19 +05:30
parent eedc6f62ff
commit 8ef427b0fd

View File

@ -670,6 +670,7 @@ void TcpProtocol::loadConfigWidget()
void TcpProtocol::storeConfigWidget()
{
bool isOk;
int ff = 0;
configWidget();
@ -690,7 +691,8 @@ void TcpProtocol::storeConfigWidget()
setFieldData(tcp_window, configForm->leTcpWindow->text());
setFieldData(tcp_cksum, configForm->leTcpCksum->text());
setFieldData(tcp_cksum, configForm->leTcpCksum->text().remove(QChar(' '))
.toUInt(&isOk, BASE_HEX));
setFieldData(tcp_is_override_cksum,
configForm->cbTcpCksumOverride->isChecked());