Official eMule-Board: Fix In Cfiledetaildialoginfo::refreshdata - Official eMule-Board

Jump to content


Page 1 of 1

Fix In Cfiledetaildialoginfo::refreshdata

#1 User is offline   ducho 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 98
  • Joined: 22-October 06

Posted 19 January 2010 - 02:29 AM

While I was reworking pt_BR translation, I found this string error when using arrows buttons to see others files.

code 0.49c
void CFileDetailDialogInfo::RefreshData()
{
CString str;

if (m_paFiles->GetSize() == 1)
{
  const CPartFile* file = STATIC_DOWNCAST(CPartFile, (*m_paFiles)[0]);

  // if file is completed, we output the 'file path' and not the 'part.met file path'
  if (file->GetStatus(true) == PS_COMPLETE)
   GetDlgItem(IDC_FD_X2)->SetWindowText(GetResString(IDS_DL_FILENAME));


should be

void CFileDetailDialogInfo::RefreshData()
{
CString str;

if (m_paFiles->GetSize() == 1)
{
  const CPartFile* file = STATIC_DOWNCAST(CPartFile, (*m_paFiles)[0]);

  // if file is completed, we output the 'file path' and not the 'part.met file path'
  if (file->GetStatus(true) == PS_COMPLETE)
   GetDlgItem(IDC_FD_X2)->SetWindowText(GetResString(IDS_DL_FILENAME)+_T(':'));
  else 
   GetDlgItem(IDC_FD_X2)->SetWindowText(GetResString(IDS_FD_MET));

0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users