| 125 | } |
| 126 | |
| 127 | void SessionListView::cloneCurrentSession() |
| 128 | { |
| 129 | SessionNameInputDialog dlg; |
| 130 | dlg.setTitle(tr("New Session Name")); |
| 131 | dlg.setActionText(tr("Clone", "button"), |
| 132 | tr("Clone and Open", "button")); |
| 133 | const auto session = currentSession(); |
| 134 | dlg.setSessionName(session + " (2)"); |
| 135 | |
| 136 | runInputDialog(&dlg, [session](const QString &newName) { |
| 137 | SessionManager::instance()->cloneSession(session, newName); |
| 138 | }); |
| 139 | } |
| 140 | |
| 141 | void SessionListView::renameCurrentSession() |
| 142 | { |
nothing calls this directly
no test coverage detected