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

Method slotProjectClosing

kdevplatform/shell/runcontroller.cpp:532–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532void KDevelop::RunController::slotProjectClosing(KDevelop::IProject * project)
533{
534 Q_D(RunController);
535
536 if (!d->currentTargetAction) return;
537
538 const auto actions = d->currentTargetAction->actions();
539 for (QAction* action : actions) {
540 LaunchConfiguration* l = static_cast<LaunchConfiguration*>(qvariant_cast<void*>(action->data()));
541 if ( project == l->project() ) {
542 l->save();
543 d->launchConfigurations.removeAll(l);
544 delete l;
545 bool wasSelected = action->isChecked();
546 delete action;
547 if (wasSelected && !d->currentTargetAction->actions().isEmpty())
548 d->currentTargetAction->actions().at(0)->setChecked(true);
549 }
550 }
551}
552
553void RunController::debugCurrentLaunch()
554{

Callers

nothing calls this directly

Calls 6

actionsMethod · 0.45
dataMethod · 0.45
projectMethod · 0.45
saveMethod · 0.45
isEmptyMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected