void CDownloadClientsCtrl::RefreshClient(CUpDownClient* client)
{
if( !theApp.emuledlg->IsRunning() )
return;
//MORPH START - SiRoB, Don't Refresh item if not needed
if( theApp.emuledlg->activewnd != theApp.emuledlg->transferwnd || theApp.emuledlg->transferwnd->downloadclientsctrl.IsWindowVisible() == false )
return;
//MORPH END - SiRoB, Don't Refresh item if not needed
the list isn't beeing sorted correctly when it is(/was) hidden.
Fix:
Quote
{
if(!theApp.emuledlg->IsRunning())
return;
//Xman Sorting Fix
int iItem = InsertItem(LVIF_TEXT|LVIF_PARAM, GetItemCount(), client->GetUserName(), 0, 0, 1, (LPARAM)client);
Update(iItem);
//InsertItem(LVIF_TEXT|LVIF_PARAM, GetItemCount(), client->GetUserName(), 0, 0, 1, (LPARAM)client);
//RefreshClient(client);
//Xman end
theApp.emuledlg->transferwnd->UpdateListCount(CTransferWnd::wnd2Downloading, GetItemCount());
}
This post has been edited by Xman1: 22 October 2005 - 08:50 AM










Sign In
Register





