mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-08 06:53:41 +00:00
Do not allow non-absolute paths when saving textures. Closes #1795
This commit is contained in:
1 file changed
+9
@@ -662,6 +662,15 @@ void TextureSaveDialog::on_saveCancelButtons_accepted()
|
||||
|
||||
QFileInfo fi(filename());
|
||||
|
||||
if(!fi.isAbsolute())
|
||||
{
|
||||
RDDialog::critical(
|
||||
this, tr("Save Texture"),
|
||||
tr("%1\nIs not an absolute path.\nCheck the path and try again.").arg(filename()));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
QDir dir = fi.dir();
|
||||
|
||||
bool valid = dir.makeAbsolute();
|
||||
|
||||
Reference in new issue
Block a user