From 27d8c45d1c229cbed71073ee9fc3e93b60373e94 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:24:30 +0000 Subject: [PATCH] Replaced duplicated code by running ProcessKeyType() instead. --- source/contacteditor/frmContactEditorKey.cpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/source/contacteditor/frmContactEditorKey.cpp b/source/contacteditor/frmContactEditorKey.cpp index bc876d6..fb6319b 100644 --- a/source/contacteditor/frmContactEditorKey.cpp +++ b/source/contacteditor/frmContactEditorKey.cpp @@ -408,23 +408,9 @@ void frmContactEditorKey::ProcessKeyType( wxCommandEvent& event ) { // Process the key type (via wxCommandEvent). - - int intKeyType = 0; - - intKeyType = cmbKeyMainType->GetCurrentSelection(); - - if (intKeyType == 0){ - - tabURL->Show(); - tabKey->Hide(); - - } else if (intKeyType == 1){ - - tabURL->Hide(); - tabKey->Show(); - - } + ProcessKeyType(); + } void frmContactEditorKey::ProcessKeyType() -- 2.39.5