| 281 | } |
| 282 | |
| 283 | bool DebugController::canAddSession(const QString& replaceSessionQuestionText) const |
| 284 | { |
| 285 | if (!m_currentSession) { |
| 286 | return true; |
| 287 | } |
| 288 | |
| 289 | const auto answer = KMessageBox::warningTwoActions( |
| 290 | ICore::self()->uiController()->activeMainWindow(), replaceSessionQuestionText, {}, |
| 291 | KGuiItem(i18nc("@action:button", "Abort Current Session"), QStringLiteral("application-exit")), |
| 292 | KStandardGuiItem::cancel()); |
| 293 | return answer == KMessageBox::PrimaryAction; |
| 294 | } |
| 295 | |
| 296 | void DebugController::addSession(IDebugSession* session) |
| 297 | { |
no test coverage detected