| 341 | } |
| 342 | |
| 343 | void GrepOutputView::refresh() |
| 344 | { |
| 345 | int index = modelSelector->currentIndex(); |
| 346 | if (index >= 0) { |
| 347 | QVariant var = modelSelector->currentData(); |
| 348 | qvariant_cast<QObject*>(var)->deleteLater(); |
| 349 | modelSelector->removeItem(index); |
| 350 | |
| 351 | QVector<GrepJobSettings> refresh_history({ |
| 352 | m_settingsHistory.takeAt(m_settingsHistory.count() - 1 - index) |
| 353 | }); |
| 354 | refresh_history.first().fromHistory = false; |
| 355 | |
| 356 | auto* const dlg = new GrepDialog(m_plugin, this, this, false); |
| 357 | dlg->historySearch(refresh_history); |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | void GrepOutputView::expandElements(const QModelIndex& index) |
| 362 | { |