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