| 463 | } |
| 464 | |
| 465 | void 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 | |
| 482 | void WorkingSet::saveFromArea(Sublime::Area* area) |
| 483 | { |