22 if (this->condenseButton->isChecked())
28 if (this->edit_old_value->text().isEmpty())
30 OGSError::box(
"Please input which material you want to replace.");
34 static_cast<unsigned>(this->edit_old_value->text().toInt());
35 if (this->edit_new_value->text().isEmpty())
37 OGSError::box(
"Please input the new material to replace group " +
38 this->edit_old_value->text() +
".");
42 static_cast<unsigned>(this->edit_new_value->text().toInt());
43 bool do_not_replace = this->replaceCheckBox->isChecked();
45 *
_mesh, old_value, new_value, !do_not_replace);
46 if (!result && do_not_replace)
54 this->done(QDialog::Accepted);