From b23c3816ba6cff4870592662f911bc11ccb9f528 Mon Sep 17 00:00:00 2001 From: boutinb Date: Fri, 24 Nov 2023 11:49:57 +0100 Subject: [PATCH] reference to rowCount should be done via dataSetInfo.rowCount --- inst/qml/common/LDGenerateDisplayData.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/qml/common/LDGenerateDisplayData.qml b/inst/qml/common/LDGenerateDisplayData.qml index 830502f..7ab0a06 100644 --- a/inst/qml/common/LDGenerateDisplayData.qml +++ b/inst/qml/common/LDGenerateDisplayData.qml @@ -38,7 +38,7 @@ Section title: qsTr("Generate new variable from %1").arg(distributionName) + " (" + formula + ")" AddColumnField { name: "newVariableName"; text: qsTr("Variable name: "); fieldWidth: 120; placeholderText: qsTr("e.g., random %1").arg(distributionSimpleName) } - IntegerField { name: "sampleSize"; label: qsTr("Number of samples: "); min: dataSetInfo.dataAvailable ? 1 : 0; defaultValue: dataSetModel.rowCount(); max: dataSetModel.rowCount() } + IntegerField { name: "sampleSize"; label: qsTr("Number of samples: "); min: dataSetInfo.dataAvailable ? 1 : 0; defaultValue: dataSetInfo.rowCount; max: dataSetInfo.rowCount } Button { id: simulateNowButton