MCPcopy Create free account
hub / github.com/Neverous/efibooteditor / setOptionalDataFormat

Method setOptionalDataFormat

src/bootentryform.cpp:108–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void BootEntryForm::setOptionalDataFormat(int format)
109{
110 if(!isEnabled() || changing_optional_data_format)
111 return;
112
113 changing_optional_data_format = true;
114 bool success = entries_list_model->changeEntryOptionalDataFormat(current_index, format);
115 if(!success)
116 {
117 QMessageBox::critical(this, qApp->applicationName(), tr("Couldn't change optional data format!"));
118 ui->optional_data_format_combo->setCurrentIndex(static_cast<int>(current_item->optional_data_format));
119 changing_optional_data_format = false;
120 return;
121 }
122
123 ui->optional_data_text->setPlainText(current_item->optional_data);
124 changing_optional_data_format = false;
125}
126
127void BootEntryForm::optionalDataEdited()
128{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected