| 125 | } |
| 126 | |
| 127 | void ExternalScriptView::addScript() |
| 128 | { |
| 129 | auto* item = new ExternalScriptItem; |
| 130 | KDevelop::ScopedDialog<EditExternalScript> dlg(item, this); |
| 131 | if (dlg->exec() == QDialog::Accepted) { |
| 132 | m_plugin->model()->appendRow(item); |
| 133 | } else { |
| 134 | delete item; |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | void ExternalScriptView::removeScript() |
| 139 | { |