Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmContactEditor: Fix issue with intValueSeek not being incremented properly
[xestiaab/.git] / source / contacteditor / frmContactEditor-Groups.cpp
index f3af6a7..225fa2a 100644 (file)
@@ -39,7 +39,8 @@ void frmContactEditor::AddGroup( wxCommandEvent& event )
        frameCEGroup->ShowModal();
        delete frameCEGroup;
        frameCEGroup = NULL;
-    
+    intValueSeek++;
+
 }
 
 void frmContactEditor::ModifyGroup( wxCommandEvent& event )
@@ -57,7 +58,7 @@ void frmContactEditor::DeleteGroup( wxCommandEvent& event )
        long longSelected = -1;
        int intSelectedData = 0;
     
-       if (!GetSelectedItem(lboGroups,
+       if (lboGroups->GetItemCount() == 0 || !GetSelectedItem(lboGroups,
                &longSelected,
                &intSelectedData)){
                return;
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy