From 5f76f74cd5f5d2bb8ca1880e5a9ca78c4658d1bf Mon Sep 17 00:00:00 2001 From: Jan Schuffenhauer Date: Wed, 15 Jan 2020 20:35:51 +0100 Subject: [PATCH] Fix out of Range --- src/GUI/IntelliInputDialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GUI/IntelliInputDialog.cpp b/src/GUI/IntelliInputDialog.cpp index d12b1f1..d778e59 100644 --- a/src/GUI/IntelliInputDialog.cpp +++ b/src/GUI/IntelliInputDialog.cpp @@ -4,6 +4,7 @@ IntelliInputDialog::IntelliInputDialog(QEventLoop* Loop, QString Title, QString Label, int value, int minValue, int maxValue, int step) { + this->valueInt = value; createInputBox(Title, Label, value, minValue, maxValue, step); createConnections(Loop); setValuesOfPalette(); @@ -91,5 +92,5 @@ void IntelliInputDialog::slotCloseEvent(){ } void IntelliInputDialog::slotEingabe(){ - valueInt= QString("%1").arg(Input->value()).toInt(); + valueInt = QString("%1").arg(Input->value()).toInt(); }