MCPcopy Create free account
hub / github.com/cmauri/eviacam / OnButtonDelProfileClick

Method OnButtonDelProfileClick

src/wconfiguration.cpp:1513–1526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1511 */
1512
1513void WConfiguration::OnButtonDelProfileClick( wxCommandEvent& event )
1514{
1515 wxString msg;
1516
1517 msg.sprintf (_("This action will delete %s profile.\nAre you sure you want to continue?"), m_choProfile->GetStringSelection().c_str());
1518 wxMessageDialog dlg (NULL, msg, _T("Enable Viacam"), wxICON_EXCLAMATION | wxYES_NO );
1519 if (dlg.ShowModal()== wxID_YES)
1520 {
1521 wxGetApp().GetController().GetConfigManager().DeleteCurrentProfile();
1522 InitializeData ();
1523 UnChanged ();
1524 }
1525 event.Skip(false);
1526}
1527
1528
1529/*!

Callers

nothing calls this directly

Calls 1

DeleteCurrentProfileMethod · 0.80

Tested by

no test coverage detected