mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Stop watching a directory when it has been reported as removed
This commit is contained in:
@@ -582,6 +582,15 @@ void Menu::removePackageLink(std::string path)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove registered monitors */
|
||||
for (vector<Monitor *>::iterator it = monitors.begin();
|
||||
it < monitors.end(); it++) {
|
||||
if ((*it)->getPath().compare(0, path.size(), path) == 0) {
|
||||
delete (*it);
|
||||
monitors.erase(it);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user