Save on unnecessary thrown ArgumentExceptions (convenience)

This commit is contained in:
baldurk
2014-08-03 15:03:59 +01:00
parent b695ba2070
commit 4e6c8202b4
@@ -476,6 +476,12 @@ namespace renderdocui.Windows.Dialogs
{
if (workDirHint == false) return;
if(exePath.Text == "")
{
workDirPath.Text = "";
return;
}
try
{
workDirPath.Text = Path.GetDirectoryName(exePath.Text);