MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / onCloseProject

Method onCloseProject

AdaptixClient/Source/UI/MainUI.cpp:186–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184void MainUI::onNewProject() { GlobalClient->NewProject(); }
185
186void MainUI::onCloseProject()
187{
188 int currentIndex = mainuiTabWidget->currentIndex();
189 auto adaptixWidget = qobject_cast<AdaptixWidget*>( mainuiTabWidget->currentWidget() );
190 if (!adaptixWidget)
191 return;
192
193 for (int i = 0; i < AdaptixProjects.size(); ++i) {
194 if (AdaptixProjects[i] == adaptixWidget) {
195 AdaptixProjects.remove(i);
196 break;
197 }
198 }
199
200 adaptixWidget->Close();
201 delete adaptixWidget;
202
203 mainuiTabWidget->removeTab(currentIndex);
204}
205
206void MainUI::onAxScriptConsole()
207{

Callers

nothing calls this directly

Calls 5

removeTabMethod · 0.80
currentIndexMethod · 0.45
sizeMethod · 0.45
removeMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected