MCPcopy Create free account
hub / github.com/KDE/kdevelop / canAddSession

Method canAddSession

kdevplatform/shell/debugcontroller.cpp:283–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283bool 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
296void DebugController::addSession(IDebugSession* session)
297{

Callers 3

startMethod · 0.80
slotExamineCoreMethod · 0.80
slotAttachProcessMethod · 0.80

Calls 2

uiControllerMethod · 0.80
activeMainWindowMethod · 0.45

Tested by

no test coverage detected