Summary: | project manager doesn't always reload emptied directories | ||
---|---|---|---|
Product: | [Developer tools] kdevplatform | Reporter: | RJVB <rjvbertin> |
Component: | project | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | All | ||
Latest Commit: | https://commits.kde.org/kdevelop/54ab8b8c6717dec9087aa8482b735571a170e5e3 | Version Fixed In: | 5.2.1 |
Attachments: | fix |
Description
RJVB
2017-11-08 13:37:21 UTC
I didn't look at the context, but what you say makes sense given the described bug. If you checked that nothing in the function relies on the list not being empty, please submit. Thanks! Also, patches are easier to review on phabricator ;) Yeah, I know, but this is a bug and I didn't want to pretend I was 100% certain of my fix. Anyway, the list is only used in a foreach loop, so removing the check should be safe. Git commit 54ab8b8c6717dec9087aa8482b735571a170e5e3 by R.J.V. Bertin. Committed on 08/11/2017 at 16:31. Pushed by rjvbb into branch '5.2'. don't skip empty directories AbstractFileManagerPluginPrivate::addJobItems() returned immediately when called with an empty entries list, thus failing to do required houskeeping. As a result the project manager would continue to show the last file deleted from now empty directories. M +0 -4 kdevplatform/project/abstractfilemanagerplugin.cpp https://commits.kde.org/kdevelop/54ab8b8c6717dec9087aa8482b735571a170e5e3 |