Skip to content

Commit

Permalink
fix RestextraktDelegate
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgeoisLab committed Sep 17, 2023
1 parent d693258 commit 70c2e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kleiner-brauhelfer/model/restextraktdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ void RestextraktDelegate::setModelData(QWidget *editor, QAbstractItemModel *mode
if (w->result() == QDialog::Accepted)
{
gUndoStack->beginMacro(QStringLiteral("macro"));
gUndoStack->push(new SetModelDataCommand(model, index.row(), index.column(), w->value()));
if (mHauptgaerung)
{
gUndoStack->push(new SetModelDataCommand(model, index.row(), ModelHauptgaerverlauf::ColTemp, w->temperatur()));
Expand All @@ -69,6 +68,7 @@ void RestextraktDelegate::setModelData(QWidget *editor, QAbstractItemModel *mode
gUndoStack->push(new SetModelDataCommand(model, index.row(), ModelSchnellgaerverlauf::ColTemp, w->temperatur()));
gUndoStack->push(new SetModelDataCommand(model, index.row(), ModelSchnellgaerverlauf::ColZeitstempel, w->datum()));
}
gUndoStack->push(new SetModelDataCommand(model, index.row(), index.column(), w->value()));
gUndoStack->endMacro();
}
}
Expand Down

0 comments on commit 70c2e83

Please sign in to comment.