Skip to content

Commit 4567da5

Browse files
author
JJPPeters
committed
Fixed output error because of "/" in filenames.
Export used combo box text that contain "/". Removed with simple QString remove method.
1 parent ecb82bc commit 4567da5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mainwindow.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ void MainWindow::ExportAll(int choice)
756756
updateOtherPlot(i, 0, false);
757757
updateOtherPlot(i, 1, false);
758758

759-
ui->leftOtherPlot->ExportSelector(fileDir, "Phase1 " + ui->leftCombo->itemText(i), choice);
760-
ui->rightOtherPlot->ExportSelector(fileDir, "Phase2 " + ui->rightCombo->itemText(i), choice);
759+
ui->leftOtherPlot->ExportSelector(fileDir, "Phase1 " + ui->leftCombo->itemText(i).remove("/"), choice);
760+
ui->rightOtherPlot->ExportSelector(fileDir, "Phase2 " + ui->rightCombo->itemText(i).remove("/"), choice);
761761
}
762762
// If I don't clear first it makes the image distorted
763763
ui->leftOtherPlot->clearImage();

0 commit comments

Comments
 (0)