Show
Ignore:
Timestamp:
08/27/10 11:30:01 (21 months ago)
Author:
Carsten
Message:

Reintegrated branches/cafu_to_wx back into trunk!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/trunk/CaWE/GuiEditor/ChildFrame.cpp

    r123 r136  
    496496void GuiEditor::ChildFrameT::OnMenuEditDelete(wxCommandEvent& CE) 
    497497{ 
    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())); 
    499500} 
    500501 
     
    698699 
    699700        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())); 
    701703            break; 
    702704