Replace space with underline in snapshot generated filenames

This commit is contained in:
Magne Sjaastad
2014-01-23 09:25:22 +01:00
parent 43adffdc83
commit e0b093d78d

View File

@@ -1419,6 +1419,7 @@ void RiaApplication::saveSnapshotForAllViews(const QString& snapshotFolderName)
QCoreApplication::processEvents();
QString fileName = ri->caseUserDescription() + "-" + riv->name();
fileName.replace(" ", "_");
QString absoluteFileName = caf::Utils::constructFullFileName(absSnapshotPath, fileName, ".png");
saveSnapshotAs(absoluteFileName);