MCPcopy Create free account
hub / github.com/KDE/kdevelop / deleteSet

Method deleteSet

kdevplatform/shell/workingsets/workingset.cpp:465–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465void WorkingSet::deleteSet(bool force, bool silent)
466{
467 if(m_areas.isEmpty() || force) {
468 emit aboutToRemove(this);
469
470 KConfigGroup setConfig(Core::self()->activeSession()->config(), QStringLiteral("Working File Sets"));
471 KConfigGroup group = setConfig.group(m_id);
472 group.deleteGroup();
473#ifdef SYNC_OFTEN
474 setConfig.sync();
475#endif
476
477 if(!silent)
478 emit setChangedSignificantly();
479 }
480}
481
482void WorkingSet::saveFromArea(Sublime::Area* area)
483{

Callers 4

cleanupMethod · 0.80
clearWorkingSetMethod · 0.80
deleteWorkingSetMethod · 0.80

Calls 3

isEmptyMethod · 0.45
configMethod · 0.45
activeSessionMethod · 0.45

Tested by 1

deleteWorkingSetMethod · 0.64