Fix wxFileSystemWatcher::RemoveAll() to actually work.
We need to call DoRemove() on all watcher objects to really remove them, just removing our record of them was not enough and e.g. resulted in errors if we tried to re-add a previously watched path again. Closes #15531. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -305,9 +305,9 @@ bool wxFileSystemWatcherBase::RemoveTree(const wxFileName& path)
|
||||
|
||||
bool wxFileSystemWatcherBase::RemoveAll()
|
||||
{
|
||||
m_service->RemoveAll();
|
||||
const bool ret = m_service->RemoveAll();
|
||||
m_watches.clear();
|
||||
return true;
|
||||
return ret;
|
||||
}
|
||||
|
||||
int wxFileSystemWatcherBase::GetWatchedPathsCount() const
|
||||
|
||||
Reference in New Issue
Block a user