From d7d1b7194d86b31bc8b6f6c55fc870b7527f538c Mon Sep 17 00:00:00 2001 From: John Date: Fri, 5 Oct 2012 14:58:08 +0000 Subject: [PATCH] fixed issue of being prompted for the folder containing the FMTALL and GENMACALL folders, when performing the Update Formats option --- PROMS/VEPROMS User Interface/frmVEPROMS.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index 5014ba59..75fcfab5 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -1935,7 +1935,7 @@ namespace VEPROMS string tmp = Properties.Settings.Default.FormatPath; DirectoryInfo di = null; if (tmp != null && tmp !="") di = new DirectoryInfo(Properties.Settings.Default.FormatPath); - if (((tmp ?? "") == "") || (di != null && (!di.Exists || !File.Exists(di.FullName + @"\fmtall") || !File.Exists(di.FullName + @"\genmacall")))) + if (((tmp ?? "") == "") || (di != null && (!di.Exists || !Directory.Exists(di.FullName + @"\fmtall") || !Directory.Exists(di.FullName + @"\genmacall")))) { while (((tmp ?? "") == "") || (!di.Exists || !Directory.Exists(di.FullName + @"\fmtall") || !Directory.Exists(di.FullName + @"\genmacall"))) {