From b4ccd682c3ad21f1b66a775d841b7ae34f3e3163 Mon Sep 17 00:00:00 2001 From: mschill Date: Wed, 22 Jan 2025 11:57:57 -0500 Subject: [PATCH] B2025-009 RO Editor - Disable the Save As button if it is a new RO that has not been saved yet. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding a new RO: when you click Save As, you get the Problem Saving Data message box. Should only be able to “Save As” if it has already been previously saved. --- .../ReferencedObjects/Exe/RefObj/ROEditor/ROEditor.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/ROEditor.cs b/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/ROEditor.cs index bdfb3d0f..de89cfe9 100644 --- a/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/ROEditor.cs +++ b/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/ROEditor.cs @@ -1154,7 +1154,10 @@ namespace ROEditor tbtnCancel.Enabled = true; tbtnSave.Enabled = true; tbtnRestore.Enabled = true; - tbtnSaveAs.Enabled = true; + if (newone == null) + { tbtnSaveAs.Enabled = true; } + else + { tbtnSaveAs.Enabled = false; } } menuROSave.Enabled = tbtnSave.Enabled; } @@ -1170,7 +1173,10 @@ namespace ROEditor tbtnSave.Enabled = true; tbtnRestore.Enabled = true; - tbtnSaveAs.Enabled = true; + if (newone == null) + { tbtnSaveAs.Enabled = true; } + else + { tbtnSaveAs.Enabled = false; } tbtnCancel.Enabled = true; menuROSave.Enabled = tbtnSave.Enabled; //B2021-080 set the mysavexml flag to true to ensure the text change will be saved -- 2.47.2