MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / deleteFile

Method deleteFile

static_libs/common/project.cpp:219–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void Project::deleteFile(int id)
220{
221 QMutexLocker locker(&m_mutex);
222 if (m_files.contains(id)) {
223 watcher->removePath(m_files[id]->name());
224 m_files.erase(id);
225 setChanged();
226 } else
227 qWarning() << "Error id" << id << "File not found";
228}
229
230void Project::deleteShape(int id)
231{

Callers 1

~NodeMethod · 0.80

Calls 2

containsMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected