import_text: Add fake interface name to settings

Write and retrieve the interface name for "Import from Hex Dump"
to the settings file.
This commit is contained in:
John Thacker 2021-12-31 09:02:00 -05:00 committed by Wireshark GitLab Utility
parent 019bb06268
commit 4d7199d14b
1 changed files with 2 additions and 0 deletions

View File

@ -288,6 +288,7 @@ void ImportTextDialog::applyDialogSettings()
ti_ui_->dissectorComboBox->setCurrentText("data");
}
ti_ui_->interfaceLineEdit->setText(settings["interfaceName"].toString());
ti_ui_->maxLengthLineEdit->setText(settings["maxFrameLength"].toString());
// Select mode tab last to enableFieldWidgets()
@ -383,6 +384,7 @@ void ImportTextDialog::storeDialogSettings()
settings["sctpPPI"] = ti_ui_->ppiLineEdit->text();
settings["pduPayload"] = ti_ui_->dissectorComboBox->currentData().toString();
settings["interfaceName"] = ti_ui_->interfaceLineEdit->text();
settings["maxFrameLength"] = ti_ui_->maxLengthLineEdit->text();
saveSettingsFile();