diff --git a/Desktop_Interface/mainwindow.cpp b/Desktop_Interface/mainwindow.cpp index b5a3d328..b01e94f2 100644 --- a/Desktop_Interface/mainwindow.cpp +++ b/Desktop_Interface/mainwindow.cpp @@ -2027,7 +2027,7 @@ void MainWindow::on_actionRecord_CH2_triggered(bool checked) return; //User cancelled } #endif - output375_CH2 = new QFile(outputDir->filePath("375_CH2.csv")); + output375_CH2 = new QFile(fileName); ui->controller_iso->internalBuffer375_CH2->enableFileIO(output375_CH2, daq_num_to_average, daq_max_file_size); return; } diff --git a/Desktop_Interface/mainwindow.h b/Desktop_Interface/mainwindow.h index c4d51bdc..57540516 100644 --- a/Desktop_Interface/mainwindow.h +++ b/Desktop_Interface/mainwindow.h @@ -221,7 +221,6 @@ private: QWheelEvent *wheelEmu; bool forceSquare = false; QCPItemText *textLabel; - QDir *outputDir; QFile *output375_CH1, *output375_CH2, *output750; unsigned char caibrateStage; QMessageBox *calibrationMessages;