| 354 | } |
| 355 | |
| 356 | void ExternalScriptPlugin::rowsAboutToBeRemoved(const QModelIndex& /*parent*/, int start, int end) |
| 357 | { |
| 358 | KConfigGroup config = getConfig(); |
| 359 | for (int row = start; row <= end; ++row) { |
| 360 | const ExternalScriptItem* const item = static_cast<ExternalScriptItem*>(m_model->item(row)); |
| 361 | KConfigGroup child = config.group(item->key()); |
| 362 | qCDebug(PLUGIN_EXTERNALSCRIPT) << "removing config group:" << child.name(); |
| 363 | child.deleteGroup(); |
| 364 | } |
| 365 | |
| 366 | config.sync(); |
| 367 | } |
| 368 | |
| 369 | void ExternalScriptPlugin::saveItem(const ExternalScriptItem* item) |
| 370 | { |