Changeset 125 for cafu/branches/cafu_to_wx/CaWE/GuiEditor/ChildFrame.cpp
- Timestamp:
- 08/20/10 20:30:16 (21 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
cafu/branches/cafu_to_wx/CaWE/GuiEditor/ChildFrame.cpp
r124 r125 496 496 void GuiEditor::ChildFrameT::OnMenuEditDelete(wxCommandEvent& CE) 497 497 { 498 SubmitCommand(new CommandDeleteT(m_GuiDocument, m_GuiDocument->GetSelection())); 498 if (m_GuiDocument->GetSelection().Size()>0) 499 SubmitCommand(new CommandDeleteT(m_GuiDocument, m_GuiDocument->GetSelection())); 499 500 } 500 501 … … 698 699 699 700 case ID_TOOLBAR_WINDOW_DELETE: 700 SubmitCommand(new CommandDeleteT(m_GuiDocument, m_GuiDocument->GetSelection())); 701 if (m_GuiDocument->GetSelection().Size()>0) 702 SubmitCommand(new CommandDeleteT(m_GuiDocument, m_GuiDocument->GetSelection())); 701 703 break; 702 704
