From: <hug...@li...> - 2012-02-26 09:03:23
|
branch: details: http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/hgroot/hugin/hugin/rev/760e29199798 changeset: 5736:760e29199798 user: tmodes date: Sun Feb 26 10:03:58 2012 +0100 description: Activate/deactivate buttons on cp tab [930234] diffstat: src/hugin1/hugin/CPEditorPanel.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diffs (30 lines): diff -r de4a2009872c -r 760e29199798 src/hugin1/hugin/CPEditorPanel.cpp --- a/src/hugin1/hugin/CPEditorPanel.cpp Sun Feb 26 09:59:20 2012 +0100 +++ b/src/hugin1/hugin/CPEditorPanel.cpp Sun Feb 26 10:03:58 2012 +0100 @@ -1310,6 +1310,8 @@ void CPEditorPanel::EnablePointEdit(bool state) { + m_delButton->Enable(state); + XRCCTRL(*this, "cp_editor_finetune_button", wxButton)->Enable(state); m_x1Text->Enable(state); m_y1Text->Enable(state); m_x2Text->Enable(state); @@ -1405,6 +1407,7 @@ SelectLocalPoint((unsigned int) t); changeState(NO_POINT); } + EnablePointEdit(true); } void CPEditorPanel::OnCPListDeselect(wxListEvent & ev) @@ -1414,9 +1417,6 @@ // interaction with control point table // e.g. m_selectedPoint=UINT_MAX will result in a endless loop and crash changeState(NO_POINT); - m_addButton->Disable(); - m_delButton->Disable(); - XRCCTRL(*this, "cp_editor_finetune_button", wxButton)->Disable(); EnablePointEdit(false); m_leftImg->deselect(); m_rightImg->deselect(); |