From 4e72553dd1d2a87042aa06f89f5f6a3148d22058 Mon Sep 17 00:00:00 2001 From: stfnp Date: Tue, 12 May 2020 01:11:06 +0100 Subject: [PATCH] Set default value for simulation mode setting in the result viewer --- source/post/OutputWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/post/OutputWidget.cpp b/source/post/OutputWidget.cpp index ec2a382b..77c3bc04 100644 --- a/source/post/OutputWidget.cpp +++ b/source/post/OutputWidget.cpp @@ -56,7 +56,7 @@ OutputWidget::OutputWidget(const OutputData& output) this->setLayout(vbox); QSettings settings; - int mode = settings.value("OutputWidget/selectedMode").toInt(); + int mode = settings.value("OutputWidget/selectedMode", int(enable_dynamics)).toInt(); bt_statics->setChecked(mode == 0); bt_dynamics->setChecked(mode == 1); }