aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/form
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-02-21 13:32:31 +0100
committerRobert Jaros <rjaros@finn.pl>2018-02-21 13:35:55 +0100
commit1aefed336f9ef305f59d3668abc8a39c550e921d (patch)
tree5eb468ac855b58718a4c15d86bd9915e64769278 /src/main/kotlin/pl/treksoft/kvision/form
parentf88c59c04d9f7053a8a97b0c65a282f961913f1b (diff)
downloadkvision-1aefed336f9ef305f59d3668abc8a39c550e921d.tar.gz
kvision-1aefed336f9ef305f59d3668abc8a39c550e921d.tar.bz2
kvision-1aefed336f9ef305f59d3668abc8a39c550e921d.zip
Small style fixes contributed by tieskedh
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/form')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/check/RadioGroup.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/check/RadioGroup.kt b/src/main/kotlin/pl/treksoft/kvision/form/check/RadioGroup.kt
index c7eb5a22..aa29de34 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/check/RadioGroup.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/check/RadioGroup.kt
@@ -133,7 +133,7 @@ open class RadioGroup(
}
private fun getDisabledFromChildren(): Boolean {
- return getChildren().filterIsInstance<Radio>().map { it.disabled }.firstOrNull() ?: false
+ return getChildren().filterIsInstance<Radio>().firstOrNull()?.disabled ?: false
}
private fun setDisabledToChildren(disabled: Boolean) {