From da98f1ad6ed83618c96826a1098f51fbcf0daea3 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 27 Sep 2015 08:28:59 +0100 Subject: [PATCH] Removed extra slash within the account filename to make revealing contact whilst searching work again. --- source/frmMain.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/frmMain.cpp b/source/frmMain.cpp index d49a44d..d885b06 100644 --- a/source/frmMain.cpp +++ b/source/frmMain.cpp @@ -760,7 +760,6 @@ void frmMain::LoadContactList( wxTreeEvent& event ) vCard Person; vCardFilenameFull.Append(AccountDirFinal); - vCardFilenameFull.Append(wxT("/")); vCardFilenameFull.Append(vCardFilename); Person.LoadFile(vCardFilenameFull); @@ -1884,15 +1883,17 @@ void frmMain::RevealContact(wxCommandEvent& event){ // If they match then select it. if (ContactsFileIndex[intSelectedData] == uc->ContactFilename){ - + // Select. lstContacts->SetItemState(longSelected, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED); lstContacts->EnsureVisible(longSelected); - break; - - } + } else { + + lstContacts->SetItemState(longSelected, 0, wxLIST_STATE_SELECTED); + + } } -- 2.39.5