Commit 6ebd3924 authored by Leander Schulten's avatar Leander Schulten
Browse files

Fix Bug where Cancel to nothing.

Fix Bug where the default value can only be in a small range
parent 3f0a8684
......@@ -131,7 +131,7 @@ ControlPanel{
Button{
Layout.fillWidth: true
text:"Abbrechen"
onClicked: dialog.visible = false
onClicked: selectProgrammDialog.visible = false
}
Button{
Layout.fillWidth: true
......
......@@ -461,13 +461,6 @@ Item{
minVal.enabled = currentIndex>=0 && currentIndex <=3;
maxVal.enabled = currentIndex>=0 && currentIndex <=3;
defaultVal.enabled = currentIndex>=0 && currentIndex <=4;
if(currentIndex === 4){
defaultVal.validator.top = 1;
defaultVal.validator.bottom = 0;
}else{
defaultVal.validator.top = 2^31;
defaultVal.validator.bottom = -2^31;
}
}
}
Label{
......@@ -499,8 +492,8 @@ Item{
id:defaultVal
enabled: type.currentIndex !== 5
validator: IntValidator{
top: dialog.prop.maxValue
bottom: dialog.prop.minValue
top: maxVal.text
bottom: minVal.text
}
}
RowLayout{
......
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