| 1091 | } |
| 1092 | |
| 1093 | void UIBuildSettings::runRemove( bool all, UIDropDownList* runList, |
| 1094 | UIDropDownList* panelRunListDDL ) { |
| 1095 | |
| 1096 | if ( runList->getListBox()->isEmpty() ) |
| 1097 | return; |
| 1098 | |
| 1099 | if ( all ) { |
| 1100 | runList->getListBox()->clear(); |
| 1101 | if ( panelRunListDDL ) |
| 1102 | panelRunListDDL->getListBox()->clear(); |
| 1103 | mBuild.mRun.clear(); |
| 1104 | } else { |
| 1105 | auto name = runList->getListBox()->getItemSelectedText(); |
| 1106 | mBuild.mRun.erase( mBuild.mRun.begin() + runList->getListBox()->getItemSelectedIndex() ); |
| 1107 | runList->getListBox()->removeListBoxItem( name ); |
| 1108 | if ( panelRunListDDL ) |
| 1109 | panelRunListDDL->getListBox()->removeListBoxItem( name ); |
| 1110 | } |
| 1111 | |
| 1112 | runUpdate( false, runList, panelRunListDDL ); |
| 1113 | |
| 1114 | if ( all ) |
| 1115 | runSelect(); |
| 1116 | } |
| 1117 | |
| 1118 | void UIBuildSettings::runUpdate( bool recreateList, UIDropDownList* runList, |
| 1119 | UIDropDownList* panelRunListDDL ) { |
nothing calls this directly
no test coverage detected