summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/gui.cc2
-rw-r--r--gui/gui.h2
-rw-r--r--gui/gui.ui2
3 files changed, 3 insertions, 3 deletions
diff --git a/gui/gui.cc b/gui/gui.cc
index 6e7da5f..b4feda6 100644
--- a/gui/gui.cc
+++ b/gui/gui.cc
@@ -139,6 +139,7 @@ void GUI::on_worker_refresh_gui(int cycles, int pc)
{
ui->p_counter->set_value(pc);
ui->cycle_counter->set_value(cycles);
+ this->set_status(get_waiting, "idle");
}
void GUI::onWorkerFetchInfo(const InstrDTO *i)
@@ -288,7 +289,6 @@ void GUI::on_step_btn_clicked()
this->set_status(get_running, "busy");
int steps = step_values[ui->step_slider->value()];
emit sendRunSteps(steps);
- this->set_status(get_waiting, "idle");
}
void GUI::on_save_program_state_btn_clicked()
diff --git a/gui/gui.h b/gui/gui.h
index 5c95db5..830d852 100644
--- a/gui/gui.h
+++ b/gui/gui.h
@@ -138,7 +138,7 @@ class GUI : public QMainWindow
/**
* The possible step slider values.
*/
- QVector<int> step_values = {1, 5, 20, 50, 250, 1000, 10000, 100000, 500000};
+ QVector<int> step_values = {1, 5, 20, 50, 250, 1000, 10000, 100000, 500000, 100000000};
QThread workerThread;
diff --git a/gui/gui.ui b/gui/gui.ui
index ec1c23b..67cca60 100644
--- a/gui/gui.ui
+++ b/gui/gui.ui
@@ -630,7 +630,7 @@
<number>0</number>
</property>
<property name="maximum">
- <number>8</number>
+ <number>9</number>
</property>
<property name="pageStep">
<number>1</number>