Qt: Disable Import Hex Dump IPv6 check box when unused

Only enable the IPv6 option check box when adding a IP header.
Improve the tooltip text.
This commit is contained in:
Stig Bjørlykke 2021-12-27 18:38:35 +01:00
parent 7dc79c9a2f
commit 6343967eef
2 changed files with 2 additions and 1 deletions

View File

@ -846,6 +846,7 @@ void ImportTextDialog::enableHeaderWidgets(bool enable_ethernet_buttons, bool en
ti_ui_->ethertypeLineEdit->setEnabled(ethertype);
ti_ui_->protocolLabel->setEnabled(ipv4_proto);
ti_ui_->protocolLineEdit->setEnabled(ipv4_proto);
ti_ui_->ipv6CheckBox->setEnabled(ip_address);
ti_ui_->sourceAddressLabel->setEnabled(ip_address);
ti_ui_->sourceAddressLineEdit->setEnabled(ip_address);
ti_ui_->destinationAddressLabel->setEnabled(ip_address);

View File

@ -572,7 +572,7 @@
<item row="3" column="0">
<widget class="QCheckBox" name="ipv6CheckBox">
<property name="toolTip">
<string>Prefix with IPv6 instead of IPv4</string>
<string>Prefix with IPv6 header</string>
</property>
<property name="text">
<string>IPv6</string>