Remove quotes from the exePath.

This solves copy/pasting a path from explorer using "Copy as path", which always adds quotes.
This commit is contained in:
Matthäus G. Chajdas
2017-02-08 01:51:36 +00:00
committed by Baldur Karlsson
parent ef6d6b3271
commit 1ba783dea6
@@ -729,6 +729,13 @@ namespace renderdocui.Windows.Dialogs
private void exePath_TextChanged(object sender, EventArgs e)
{
// This is likely due to someone pasting a full path copied using
// copy path. Removing the quotes is safe in any case
if (exePath.Text.StartsWith ("\"") && exePath.Text.EndsWith ("\"") && exePath.Text.Length > 2)
{
exePath.Text = exePath.Text.Substring(1, exePath.Text.Length - 2);
}
UpdateWorkDirHint();
UpdateGlobalHook();
}