| 942 | } |
| 943 | |
| 944 | void RunController::setDefaultLaunch(ILaunchConfiguration* l) |
| 945 | { |
| 946 | Q_D(RunController); |
| 947 | |
| 948 | const auto actions = d->currentTargetAction->actions(); |
| 949 | for (QAction* a : actions) { |
| 950 | if( static_cast<ILaunchConfiguration*>( a->data().value<void*>() ) == l ) |
| 951 | { |
| 952 | a->setChecked(true); |
| 953 | break; |
| 954 | } |
| 955 | } |
| 956 | } |
| 957 | |
| 958 | bool launcherNameExists(const QString& name) |
| 959 | { |