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

Method removeLaunchConfigurationInternal

kdevplatform/shell/runcontroller.cpp:914–933  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

912}
913
914void RunController::removeLaunchConfigurationInternal(LaunchConfiguration *l)
915{
916 Q_D(RunController);
917
918 const auto actions = d->currentTargetAction->actions();
919 for (QAction* a : actions) {
920 if( static_cast<LaunchConfiguration*>( a->data().value<void*>() ) == l ) {
921 bool wasSelected = a->isChecked();
922 d->currentTargetAction->removeAction( a );
923 if( wasSelected && !d->currentTargetAction->actions().isEmpty() ) {
924 d->currentTargetAction->actions().at(0)->setChecked( true );
925 }
926 break;
927 }
928 }
929
930 d->launchConfigurations.removeAll( l );
931
932 delete l;
933}
934
935void KDevelop::RunController::executeDefaultLaunch(const QString& runMode)
936{

Callers

nothing calls this directly

Calls 5

removeActionMethod · 0.80
actionsMethod · 0.45
dataMethod · 0.45
isEmptyMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected