mirror of https://github.com/BOINC/boinc.git
MGR: simplify my fix of bug which made it difficult to select items when certain columns are hidden
This commit is contained in:
parent
40398cec31
commit
4dfd53f4e8
|
@ -357,11 +357,7 @@ wxString CViewProjects::GetKeyValue1(int iRowIndex) {
|
|||
|
||||
if (m_iColumnIDToColumnIndex[COLUMN_PROJECT] < 0) {
|
||||
// Column is hidden, so SynchronizeCacheItem() did not set its value
|
||||
wxString strDocumentText = wxEmptyString;
|
||||
GetDocProjectURL(m_iSortedIndexes[iRowIndex], strDocumentText);
|
||||
if (!strDocumentText.IsSameAs(project->m_strProjectURL)) {
|
||||
project->m_strProjectURL = strDocumentText;
|
||||
}
|
||||
GetDocProjectURL(m_iSortedIndexes[iRowIndex], project->m_strProjectURL);
|
||||
}
|
||||
|
||||
return project->m_strProjectURL;
|
||||
|
|
|
@ -316,11 +316,7 @@ wxString CViewTransfers::GetKeyValue1(int iRowIndex) {
|
|||
|
||||
if (m_iColumnIDToColumnIndex[COLUMN_FILE] < 0) {
|
||||
// Column is hidden, so SynchronizeCacheItem() did not set its value
|
||||
wxString strDocumentText = wxEmptyString;
|
||||
GetDocFileName(m_iSortedIndexes[iRowIndex], strDocumentText);
|
||||
if (!strDocumentText.IsSameAs(transfer->m_strFileName)) {
|
||||
transfer->m_strFileName = strDocumentText;
|
||||
}
|
||||
GetDocFileName(m_iSortedIndexes[iRowIndex], transfer->m_strFileName);
|
||||
}
|
||||
|
||||
return transfer->m_strFileName;
|
||||
|
@ -336,11 +332,7 @@ wxString CViewTransfers::GetKeyValue2(int iRowIndex) {
|
|||
|
||||
if (m_iColumnIDToColumnIndex[COLUMN_PROJECT] < 0) {
|
||||
// Column is hidden, so SynchronizeCacheItem() did not set its value
|
||||
wxString strDocumentText = wxEmptyString;
|
||||
GetDocProjectURL(m_iSortedIndexes[iRowIndex], strDocumentText);
|
||||
if (!strDocumentText.IsSameAs(transfer->m_strProjectURL)) {
|
||||
transfer->m_strProjectURL = strDocumentText;
|
||||
}
|
||||
GetDocProjectURL(m_iSortedIndexes[iRowIndex], transfer->m_strProjectURL);
|
||||
}
|
||||
|
||||
return transfer->m_strProjectURL;
|
||||
|
|
|
@ -372,11 +372,7 @@ wxString CViewWork::GetKeyValue1(int iRowIndex) {
|
|||
|
||||
if (m_iColumnIDToColumnIndex[COLUMN_NAME] < 0) {
|
||||
// Column is hidden, so SynchronizeCacheItem() did not set its value
|
||||
wxString strDocumentText = wxEmptyString;
|
||||
GetDocName(m_iSortedIndexes[iRowIndex], strDocumentText);
|
||||
if (!strDocumentText.IsSameAs(work->m_strName)) {
|
||||
work->m_strName = strDocumentText;
|
||||
}
|
||||
GetDocName(m_iSortedIndexes[iRowIndex], work->m_strName);
|
||||
}
|
||||
|
||||
return work->m_strName;
|
||||
|
@ -392,11 +388,7 @@ wxString CViewWork::GetKeyValue2(int iRowIndex) {
|
|||
|
||||
if (m_iColumnIDToColumnIndex[COLUMN_PROJECT] < 0) {
|
||||
// Column is hidden, so SynchronizeCacheItem() did not set its value
|
||||
wxString strDocumentText = wxEmptyString;
|
||||
GetDocProjectURL(m_iSortedIndexes[iRowIndex], strDocumentText);
|
||||
if (!strDocumentText.IsSameAs(work->m_strProjectURL)) {
|
||||
work->m_strProjectURL = strDocumentText;
|
||||
}
|
||||
GetDocProjectURL(m_iSortedIndexes[iRowIndex], work->m_strProjectURL);
|
||||
}
|
||||
|
||||
return work->m_strProjectURL;
|
||||
|
|
Loading…
Reference in New Issue