mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-15 02:56:50 +00:00
Use different dialog title for different export formats. Closes #2311
This commit is contained in:
@@ -4022,13 +4022,20 @@ void BufferViewer::exportData(const BufferExport ¶ms)
|
||||
return;
|
||||
|
||||
QString filter;
|
||||
QString title;
|
||||
if(params.format == BufferExport::CSV)
|
||||
{
|
||||
filter = tr("CSV Files (*.csv)");
|
||||
title = tr("Export buffer to CSV");
|
||||
}
|
||||
else if(params.format == BufferExport::RawBytes)
|
||||
{
|
||||
filter = tr("Binary Files (*.bin)");
|
||||
title = tr("Export buffer to bytes");
|
||||
}
|
||||
|
||||
QString filename = RDDialog::getSaveFileName(this, tr("Export buffer to bytes"), QString(),
|
||||
tr("%1;;All files (*)").arg(filter));
|
||||
QString filename =
|
||||
RDDialog::getSaveFileName(this, title, QString(), tr("%1;;All files (*)").arg(filter));
|
||||
|
||||
if(filename.isEmpty())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user