From: <vo...@us...> - 2012-01-03 13:42:05
|
Revision: 1597 http://moneymanagerex.svn.sourceforge.net/moneymanagerex/?rev=1597&view=rev Author: vomikan Date: 2012-01-03 13:41:56 +0000 (Tue, 03 Jan 2012) Log Message: ----------- update Modified Paths: -------------- trunk/mmex/src/transdialog.cpp Modified: trunk/mmex/src/transdialog.cpp =================================================================== --- trunk/mmex/src/transdialog.cpp 2012-01-03 12:45:42 UTC (rev 1596) +++ trunk/mmex/src/transdialog.cpp 2012-01-03 13:41:56 UTC (rev 1597) @@ -1280,11 +1280,15 @@ wxChoice* choice = (wxChoice*)FindWindow(ID_DIALOG_TRANS_TYPE); int i = choice->GetSelection(); if (event.GetKeyCode()==WXK_DOWN) { - if (i < DEF_TRANSFER) - choice->SetSelection(i++); + if (i < DEF_TRANSFER) { + i++; + choice->SetSelection(i); + } } else if (event.GetKeyCode()==WXK_UP){ - if (i > DEF_WITHDRAWAL) - choice->SetSelection(i--); + if (i > DEF_WITHDRAWAL) { + i--; + choice->SetSelection(i); + } } updateControlsForTransType(); event.Skip(); @@ -1295,11 +1299,15 @@ wxChoice* choice = (wxChoice*)FindWindow(ID_DIALOG_TRANS_STATUS); int i = choice->GetSelection(); if (event.GetKeyCode()==WXK_DOWN) { - if (i < DEF_STATUS_DUPLICATE) - choice->SetSelection(i++); + if (i < DEF_STATUS_DUPLICATE) { + i++; + choice->SetSelection(i++); + } } else if (event.GetKeyCode()==WXK_UP){ - if (i > DEF_STATUS_NONE) - choice->SetSelection(i--); + if (i > DEF_STATUS_NONE) { + i--; + choice->SetSelection(i); + } } event.Skip(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |