Skip to content
Snippets Groups Projects
Commit 494b4ba1 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

rm undo-related code

parent 8ea11992
No related branches found
No related tags found
1 merge request!2084Fix editing spinboxes in sample editor
Pipeline #118483 passed
......@@ -347,25 +347,7 @@ void SampleEditorController::removeParticle(ItemWithParticles* itemToRemove)
void SampleEditorController::setDouble(double value, DoubleProperty& d)
{
ASSERT(m_sampleForm);
DoubleSpinBox* spinBox = nullptr;
for (auto* s : m_sampleForm->findChildren<DoubleSpinBox*>()) {
if (s->uid() == d.uid()) {
spinBox = s;
break;
}
}
if (!spinBox)
return;
d.setValue(value);
QSignalBlocker _(spinBox);
spinBox->setBaseValue(value);
spinBox->setFocus();
spinBox->selectAll();
emit modified();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment