| 106 | } |
| 107 | |
| 108 | void 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 | |
| 127 | void BootEntryForm::optionalDataEdited() |
| 128 | { |
nothing calls this directly
no test coverage detected