Show
Ignore:
Timestamp:
08/20/10 20:30:16 (21 months ago)
Author:
Carsten
Message:

Improved mouse input handling in the cafu_to_wx branch.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/branches/cafu_to_wx/CaWE/GuiEditor/ChildFrame.cpp

    r124 r125  
    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