diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index f46dac9e..a3b5b907 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -53,7 +53,7 @@ using namespace std; -enum tb_stat {tb_saved, tb_unsaved, tb_ro}; +enum tb_stat {tb_saved, tb_unsaved, tb_ro, tb_monitored}; #define DIR_LEFT true #define DIR_RIGHT false @@ -4951,14 +4951,14 @@ void Notepad_plus::getTaskListInfo(TaskListInfo *tli) { BufferID bufID = _pDocTab->getBufferByIndex(i); Buffer * b = MainFileManager.getBufferByID(bufID); - int status = b->isReadOnly()?tb_ro:(b->isDirty()?tb_unsaved:tb_saved); + int status = b->isMonitoringOn()?tb_monitored:(b->isReadOnly()?tb_ro:(b->isDirty()?tb_unsaved:tb_saved)); tli->_tlfsLst.push_back(TaskLstFnStatus(currentView(), i, b->getFullPathName(), status, (void *)bufID)); } for (int i = 0 ; i < nonCurrentNbDoc ; ++i) { BufferID bufID = _pNonDocTab->getBufferByIndex(i); Buffer * b = MainFileManager.getBufferByID(bufID); - int status = b->isReadOnly()?tb_ro:(b->isDirty()?tb_unsaved:tb_saved); + int status = b->isMonitoringOn()?tb_monitored:(b->isReadOnly()?tb_ro:(b->isDirty()?tb_unsaved:tb_saved)); tli->_tlfsLst.push_back(TaskLstFnStatus(otherView(), i, b->getFullPathName(), status, (void *)bufID)); } } diff --git a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp index 14e7b67d..45b6fa95 100644 --- a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp +++ b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp @@ -222,7 +222,7 @@ void VerticalFileSwitcherListView::setItemIconStatus(BufferID bufferID) LVITEM item; item.pszText = fn; item.iSubItem = 0; - item.iImage = buf->getUserReadOnly()||buf->getFileReadOnly()?2:(buf->isDirty()?1:0); + item.iImage = buf->isMonitoringOn()?3:(buf->isReadOnly()?2:(buf->isDirty()?1:0)); int nbItem = ListView_GetItemCount(_hSelf); @@ -301,7 +301,7 @@ int VerticalFileSwitcherListView::add(BufferID bufferID, int iView) item.pszText = fn; item.iItem = index; item.iSubItem = 0; - item.iImage = buf->getUserReadOnly()||buf->getFileReadOnly()?2:(buf->isDirty()?1:0); + item.iImage = buf->isMonitoringOn()?3:(buf->isReadOnly()?2:(buf->isDirty()?1:0)); item.lParam = reinterpret_cast(tl); ListView_InsertItem(_hSelf, &item);