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

Method removeLaunchConfiguration

kdevplatform/shell/runcontroller.cpp:897–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895}
896
897void 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
914void RunController::removeLaunchConfigurationInternal(LaunchConfiguration *l)
915{

Callers 1

deleteConfigurationMethod · 0.80

Calls 10

QStringListClass · 0.85
readEntryMethod · 0.80
configGroupNameMethod · 0.80
writeEntryMethod · 0.80
projectMethod · 0.45
projectConfigurationMethod · 0.45
configMethod · 0.45
activeSessionMethod · 0.45

Tested by

no test coverage detected