| 876 | } |
| 877 | |
| 878 | void KDevelop::RunController::addLaunchConfiguration(KDevelop::LaunchConfiguration* l) |
| 879 | { |
| 880 | Q_D(RunController); |
| 881 | |
| 882 | if( !d->launchConfigurations.contains( l ) ) |
| 883 | { |
| 884 | d->addLaunchAction( l ); |
| 885 | d->launchConfigurations << l; |
| 886 | if( !d->currentTargetAction->currentAction() ) |
| 887 | { |
| 888 | if( !d->currentTargetAction->actions().isEmpty() ) |
| 889 | { |
| 890 | d->currentTargetAction->actions().at(0)->setChecked( true ); |
| 891 | } |
| 892 | } |
| 893 | connect( l, &LaunchConfiguration::nameChanged, this, &RunController::launchChanged ); |
| 894 | } |
| 895 | } |
| 896 | |
| 897 | void KDevelop::RunController::removeLaunchConfiguration(KDevelop::LaunchConfiguration* l) |
| 898 | { |
no test coverage detected