Explorar el Código

Simplification des résultats dans le fichier json

Rémi Synave hace 2 años
padre
commit
988c40d503
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      csl/Experiment.cpp

+ 1 - 1
csl/Experiment.cpp

@@ -256,7 +256,7 @@ Experiment::openNext (){
       for (int i = 0; i < choice->size (); i++){
 	QJsonObject choiceOnImage;
 	choiceOnImage["index"] = i;
-	choiceOnImage["image"] = QString(filenames->at(i));
+	choiceOnImage["image"] = QString(QFileInfo(filenames->at(i)).baseName());
 	choiceOnImage["choice"] = QString(choice->at(i));
 	choices.push_back(choiceOnImage);
       }