From 9e1e33ebd93b519be12e7a52c1b85b36d095ac72 Mon Sep 17 00:00:00 2001 From: boutinb Date: Thu, 19 Oct 2023 11:08:03 +0200 Subject: [PATCH] Replace mainWindow by dataSetInfo QML analysis files should not use objects that are not defined outside the QMLComponents library. Cf jasp-stats/jasp-desktop#5281 --- inst/qml/LSTdescriptives.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/qml/LSTdescriptives.qml b/inst/qml/LSTdescriptives.qml index a6ebb6e..e6330bb 100644 --- a/inst/qml/LSTdescriptives.qml +++ b/inst/qml/LSTdescriptives.qml @@ -58,7 +58,7 @@ Form value: "dataVariable" label: qsTr("Select variable") id: dataTypeC - enabled: mainWindow.dataAvailable + enabled: dataSetInfo.dataAvailable } } @@ -477,4 +477,4 @@ Form } } } -} \ No newline at end of file +}