From 49ef3ac132e281aa02b8354daec5509b34d0f689 Mon Sep 17 00:00:00 2001 From: Marco Ciampa Date: Mon, 24 Aug 2015 08:50:47 -0400 Subject: [PATCH] Fix environment variable dialog error messages. --- common/dialogs/dialog_env_var_config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/dialogs/dialog_env_var_config.cpp b/common/dialogs/dialog_env_var_config.cpp index 2589e52666..79ef7dd3f2 100644 --- a/common/dialogs/dialog_env_var_config.cpp +++ b/common/dialogs/dialog_env_var_config.cpp @@ -116,7 +116,7 @@ bool DIALOG_ENV_VAR_CONFIG::TransferDataFromWindow() // Name cannot be empty. if( name.IsEmpty() ) { - wxMessageBox( _( "Cannot have duplicate environment variable name cannot be empty." ), + wxMessageBox( _( "Environment variable name cannot be empty." ), caption, wxOK | wxICON_ERROR, this ); m_grid->GoToCell( row, 0 ); m_grid->SetGridCursor( row, 0 ); @@ -126,7 +126,7 @@ bool DIALOG_ENV_VAR_CONFIG::TransferDataFromWindow() // Value cannot be empty. if( value.IsEmpty() ) { - wxMessageBox( _( "Cannot have environment variable value cannot be empty." ), caption, + wxMessageBox( _( "Environment variable value cannot be empty." ), caption, wxOK | wxICON_ERROR, this ); m_grid->GoToCell( row, 1 ); m_grid->SetGridCursor( row, 1 );