mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Add QIODevice::Text for text writing, to convert newlines. Refs #1246
This commit is contained in:
@@ -3235,7 +3235,12 @@ void BufferViewer::exportData(const BufferExport ¶ms)
|
||||
|
||||
QFile *f = new QFile(filename);
|
||||
|
||||
if(!f->open(QIODevice::WriteOnly | QFile::Truncate))
|
||||
QIODevice::OpenMode flags = QIODevice::WriteOnly | QFile::Truncate;
|
||||
|
||||
if(params.format == BufferExport::CSV)
|
||||
flags |= QIODevice::Text;
|
||||
|
||||
if(!f->open(flags))
|
||||
{
|
||||
delete f;
|
||||
RDDialog::critical(this, tr("Error exporting file"),
|
||||
|
||||
Reference in New Issue
Block a user