Fix tool tip in document switcher showing the old name issue (after being renamed).
Fix #4910, close #4936pull/5002/head
parent
b9b3faf307
commit
94cf9d53ca
|
@ -234,14 +234,15 @@ void VerticalFileSwitcherListView::setItemIconStatus(BufferID bufferID)
|
||||||
TaskLstFnStatus *tlfs = (TaskLstFnStatus *)(item.lParam);
|
TaskLstFnStatus *tlfs = (TaskLstFnStatus *)(item.lParam);
|
||||||
if (tlfs->_bufID == bufferID)
|
if (tlfs->_bufID == bufferID)
|
||||||
{
|
{
|
||||||
|
tlfs->_fn = buf->getFullPathName();
|
||||||
item.mask = LVIF_TEXT | LVIF_IMAGE;
|
item.mask = LVIF_TEXT | LVIF_IMAGE;
|
||||||
ListView_SetItem(_hSelf, &item);
|
ListView_SetItem(_hSelf, &item);
|
||||||
|
|
||||||
if (isExtColumn)
|
if (isExtColumn)
|
||||||
{
|
{
|
||||||
ListView_SetItemText(_hSelf, i, 1, (LPTSTR)::PathFindExtension(buf->getFileName()));
|
ListView_SetItemText(_hSelf, i, 1, (LPTSTR)::PathFindExtension(buf->getFileName()));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -286,7 +287,7 @@ int VerticalFileSwitcherListView::add(BufferID bufferID, int iView)
|
||||||
Buffer *buf = static_cast<Buffer *>(bufferID);
|
Buffer *buf = static_cast<Buffer *>(bufferID);
|
||||||
const TCHAR *fileName = buf->getFileName();
|
const TCHAR *fileName = buf->getFileName();
|
||||||
|
|
||||||
TaskLstFnStatus *tl = new TaskLstFnStatus(iView, 0, fileName, 0, (void *)bufferID);
|
TaskLstFnStatus *tl = new TaskLstFnStatus(iView, 0, buf->getFullPathName(), 0, (void *)bufferID);
|
||||||
|
|
||||||
TCHAR fn[MAX_PATH];
|
TCHAR fn[MAX_PATH];
|
||||||
lstrcpy(fn, ::PathFindFileName(fileName));
|
lstrcpy(fn, ::PathFindFileName(fileName));
|
||||||
|
|
Loading…
Reference in New Issue