Don't show error when added new paths

Empty paths should be discarded instead of throwing an error about
missing data
This commit is contained in:
Seth Hillbrand 2023-01-20 16:43:16 -08:00
parent d8ac53d7b4
commit 9986eb5cf6
1 changed files with 5 additions and 0 deletions

View File

@ -180,6 +180,11 @@ bool DIALOG_CONFIGURE_PATHS::TransferDataFromWindow()
{
// Don't check for consistency on external variables, just use them as-is
}
else if( name.empty() && path.empty() )
{
// Skip empty rows altogether
continue;
}
else if( name.IsEmpty() )
{
m_errorGrid = m_EnvVars;