From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:24:30 +0000 (+0000) Subject: Replaced duplicated code by running ProcessKeyType() instead. X-Git-Tag: release-0.11~108 X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=commitdiff_plain;h=27d8c45d1c229cbed71073ee9fc3e93b60373e94 Replaced duplicated code by running ProcessKeyType() instead. --- 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()