| 139 | } |
| 140 | |
| 141 | void SessionListView::renameCurrentSession() |
| 142 | { |
| 143 | SessionNameInputDialog dlg; |
| 144 | dlg.setTitle(tr("Rename Session")); |
| 145 | dlg.setActionText(tr("Rename", "button"), |
| 146 | tr("Rename and Open", "button")); |
| 147 | const auto session = currentSession(); |
| 148 | dlg.setSessionName(session); |
| 149 | |
| 150 | runInputDialog(&dlg, [session](const QString &newName) { |
| 151 | SessionManager::instance()->renameSession(session, newName); |
| 152 | }); |
| 153 | } |
| 154 | |
| 155 | void SessionListView::switchToCurrentSession() |
| 156 | { |
nothing calls this directly
no test coverage detected