Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added unit tests for CommonFunctions/ResetUnusedString
[xestiaab/.git]
/
source
/
contacteditor
/
frmContactEditorEmail.cpp
diff --git
a/source/contacteditor/frmContactEditorEmail.cpp
b/source/contacteditor/frmContactEditorEmail.cpp
index
2830a65
..
aaaab18
100644
(file)
--- a/
source/contacteditor/frmContactEditorEmail.cpp
+++ b/
source/contacteditor/frmContactEditorEmail.cpp
@@
-24,21
+24,32
@@
frmContactEditorEmail::frmContactEditorEmail( wxWindow* parent )
:
frmContactEditorEmailADT( parent )
{
:
frmContactEditorEmailADT( parent )
{
+
+ // Setup the window.
+
EditorMode = FALSE;
sliPriority->Disable();
EditorMode = FALSE;
sliPriority->Disable();
+
}
void frmContactEditorEmail::EnablePriority( wxCommandEvent& event )
{
}
void frmContactEditorEmail::EnablePriority( wxCommandEvent& event )
{
+
+ // Enable/disable the priority setting.
+
if (chkUsePref->IsChecked()){
sliPriority->Enable();
} else {
sliPriority->Disable();
}
if (chkUsePref->IsChecked()){
sliPriority->Enable();
} else {
sliPriority->Disable();
}
+
}
void frmContactEditorEmail::ProcessData( wxCommandEvent& event )
{
}
void frmContactEditorEmail::ProcessData( wxCommandEvent& event )
{
+
+ // Process action.
+
long ListCtrlIndex;
if (EditorMode == FALSE){
long ListCtrlIndex;
if (EditorMode == FALSE){
@@
-148,12
+159,18
@@
void frmContactEditorEmail::ProcessData( wxCommandEvent& event )
void frmContactEditorEmail::CloseWindow( wxCommandEvent& event )
{
void frmContactEditorEmail::CloseWindow( wxCommandEvent& event )
{
+
+ // Close this window.
+
this->Close();
this->Close();
+
}
void frmContactEditorEmail::SetEditorMode(bool EditMode, SectionType SectType)
{
}
void frmContactEditorEmail::SetEditorMode(bool EditMode, SectionType SectType)
{
+ // Set the editor mode.
+
// Set the editor mode for adding or editing an email address.
if (EditMode == FALSE){
// Set the editor mode for adding or editing an email address.
if (EditMode == FALSE){
@@
-188,13
+205,14
@@
void frmContactEditorEmail::SetEditorMode(bool EditMode, SectionType SectType)
intiter = EmailListPrefPtr->find(EmailListIndex);
intiter = EmailListPrefPtr->find(EmailListIndex);
- if (intiter->first == EmailListIndex && intiter->second > 0){
+ if (intiter->first == EmailListIndex && intiter->second > 0 &&
+ intiter != EmailListPrefPtr->end()){
sliPriority->SetValue(intiter->second);
sliPriority->Enable();
chkUsePref->SetValue(TRUE);
sliPriority->SetValue(intiter->second);
sliPriority->Enable();
chkUsePref->SetValue(TRUE);
- }
+ }
}
}
@@
-223,4
+241,5
@@
void frmContactEditorEmail::SetupPointers(std::map<int, wxString> *EmailList,
EmailListPrefPtr = EmailListPref;
EmailListCtrlPtr = EmailListCtrl;
EmailListIndex = EmailIndex;
EmailListPrefPtr = EmailListPref;
EmailListCtrlPtr = EmailListCtrl;
EmailListIndex = EmailIndex;
+
}
\ No newline at end of file
}
\ No newline at end of file
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy