fix overwrite to prodos image on windows

This commit is contained in:
Dagen Brock 2017-02-04 01:03:10 -06:00
parent 3fe8724fe2
commit ecec861b1c

View File

@ -516,7 +516,7 @@ void MainWindow::on_pushButton_saveToProdos_clicked()
QStringList list; QStringList list;
// MUST MATCH FOR NEWLINES (VS USING ^ or &) // MUST MATCH FOR NEWLINES (VS USING ^ or &)
QRegExp vol_rx("\n(/.{1,15}/)\n"); QRegExp vol_rx("\n(/.{1,15}/)\r?\n");
// OVERWRITE PRODOS VOLUME NAME IF WE KNOW BETTER // OVERWRITE PRODOS VOLUME NAME IF WE KNOW BETTER
while ((pos = vol_rx.indexIn(cat_output, pos)) != -1) { while ((pos = vol_rx.indexIn(cat_output, pos)) != -1) {
prodosVolumeName = vol_rx.cap(1); prodosVolumeName = vol_rx.cap(1);