fix write_dump command string so it can handle paths with blanks

This commit is contained in:
Axel Kohlmeyer
2023-08-21 09:06:19 -04:00
parent 2ca3be7b16
commit b1ea4d9601

View File

@ -361,7 +361,7 @@ void ImageViewer::createImage()
QString dumpcmd = QString("write_dump ") + group + " image ";
QDir dumpdir(QDir::tempPath());
QFile dumpfile(dumpdir.absoluteFilePath(filename + ".ppm"));
dumpcmd += dumpfile.fileName();
dumpcmd += "'" + dumpfile.fileName() + "'";
settings.beginGroup("snapshot");
int aa = antialias ? 2 : 1;