| 138 | } |
| 139 | |
| 140 | void AbstractFileManagerPluginPrivate::jobFinished(KJob* job) |
| 141 | { |
| 142 | // ensure we don't keep a dangling point in our list |
| 143 | // NOTE: job is potentially emitting its finished signal from its destructor |
| 144 | // or the item that was used internally may have been deleted already |
| 145 | for (auto& jobs : m_projectJobs) { |
| 146 | if (jobs.removeOne(reinterpret_cast<FileManagerListJob*>(job))) { |
| 147 | break; |
| 148 | } |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | void AbstractFileManagerPluginPrivate::addJobItems(FileManagerListJob* job, |
| 153 | ProjectFolderItem* baseItem, |