| 895 | } |
| 896 | |
| 897 | void KDevelop::RunController::removeLaunchConfiguration(KDevelop::LaunchConfiguration* l) |
| 898 | { |
| 899 | KConfigGroup launcherGroup; |
| 900 | if( l->project() ) { |
| 901 | launcherGroup = l->project()->projectConfiguration()->group( Strings::LaunchConfigurationsGroup() ); |
| 902 | } else { |
| 903 | launcherGroup = Core::self()->activeSession()->config()->group( Strings::LaunchConfigurationsGroup() ); |
| 904 | } |
| 905 | QStringList configs = launcherGroup.readEntry( Strings::LaunchConfigurationsListEntry(), QStringList() ); |
| 906 | configs.removeAll( l->configGroupName() ); |
| 907 | launcherGroup.deleteGroup( l->configGroupName() ); |
| 908 | launcherGroup.writeEntry( Strings::LaunchConfigurationsListEntry(), configs ); |
| 909 | launcherGroup.sync(); |
| 910 | |
| 911 | removeLaunchConfigurationInternal( l ); |
| 912 | } |
| 913 | |
| 914 | void RunController::removeLaunchConfigurationInternal(LaunchConfiguration *l) |
| 915 | { |
no test coverage detected