public:
wxTreeTextCtrl(wxGenericTreeCtrl *owner, wxGenericTreeItem *item);
- void EndEdit(bool discardChanges = false);
+ void EndEdit( bool discardChanges );
const wxGenericTreeItem* item() const { return m_itemEdited; }
void OnKillFocus( wxFocusEvent &event );
bool AcceptChanges();
- void Finish( bool setfocus = true );
+ void Finish( bool setfocus );
private:
wxGenericTreeCtrl *m_owner;
{
m_owner->OnRenameCancelled(m_itemEdited);
- Finish();
+ Finish( true );
}
else
{
AcceptChanges();
// Even if vetoed, close the control (consistent with MSW)
- Finish();
+ Finish( true );
}
}