| 912 | } |
| 913 | |
| 914 | void 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 | |
| 935 | void KDevelop::RunController::executeDefaultLaunch(const QString& runMode) |
| 936 | { |
nothing calls this directly
no test coverage detected