mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Don't use QFileInfo to get directory part of remote path. Refs #1094
* QFileInfo implicitly converts the path to the local OS's representation, and we want to preserve the native path format.
This commit is contained in:
@@ -931,9 +931,17 @@ void CaptureDialog::SetExecutableFilename(const rdcstr &filename)
|
||||
ui->exePath->setText(fn);
|
||||
|
||||
if(m_Ctx.Replay().CurrentRemote())
|
||||
m_Ctx.Replay().CurrentRemote()->lastCapturePath = QFileInfo(fn).absolutePath();
|
||||
{
|
||||
// remove the filename itself
|
||||
int idx = fn.lastIndexOf(QLatin1Char('/'));
|
||||
if(idx >= 0)
|
||||
fn = fn.mid(0, idx);
|
||||
m_Ctx.Replay().CurrentRemote()->lastCapturePath = fn;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_Ctx.Config().LastCapturePath = QFileInfo(fn).absolutePath();
|
||||
}
|
||||
|
||||
m_Ctx.Config().Save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user