Commit e48b8892 authored by Yann Boucher's avatar Yann Boucher
Browse files

Le numéro de la génération ne se mettait pas à jour correctement lors d'un step back

parent 84bc92ab
......@@ -222,13 +222,13 @@ pattern recorded :</string>
<widget class="QSpinBox" name="recordSpinBox">
<property name="minimum">
<property name="maximum">
<property name="value">
......@@ -608,7 +608,7 @@ pattern recorded :</string>
<widget class="QMenu" name="menuFichier">
......@@ -86,7 +86,7 @@ private slots:
//! \brief Réinitialise la simulation à la grille initiale
void on_resetButton_clicked();
//! \brief Change la vitesse de simulation
//! \brief Change la profondeur de l'historique de simulation
void on_recordSpinBox_valueChanged(int arg1);
......@@ -82,6 +82,7 @@ MainWindow::MainWindow(QWidget *parent)
if (!try_load_saved_state())
......@@ -958,7 +959,7 @@ void MainWindow::on_prevButton_clicked()
QMessageBox::warning(this, "Unable to step back", "Empty history : unable to step back");
ui->nbStepsLabel->setText(simulation.getPeriod()!=-1?QString::number(simulation.getPeriod())+" steps":"none");
ui->nbStepsLabel->setText(QString::number(simulation.getTime())+" steps");
void MainWindow::on_playPauseButton_clicked()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment