Only validate if pressing the Next button.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3271 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
eccles 2003-12-13 17:17:03 +00:00
parent 29b7da028d
commit c31682240d
3 changed files with 3 additions and 2 deletions

View file

@ -674,7 +674,7 @@ BOOL CALLBACK ParentWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPara
if (message == WM_NOTIFY_OUTER_NEXT && wParam == 1) if (message == WM_NOTIFY_OUTER_NEXT && wParam == 1)
{ {
// Don't call leave function if fields aren't valid // Don't call leave function if fields aren't valid
if (!ValidateFields()) if (!g_NotifyField && !ValidateFields())
return 0; return 0;
// Get the settings ready for the leave function verification // Get the settings ready for the leave function verification
SaveSettings(); SaveSettings();
@ -728,7 +728,7 @@ BOOL CALLBACK cfgDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
// Calculate needed size of the control // Calculate needed size of the control
DrawText(lpdis->hDC, pField->pszText, -1, &rc, DT_VCENTER | DT_SINGLELINE | DT_CALCRECT); DrawText(lpdis->hDC, pField->pszText, -1, &rc, DT_VCENTER | DT_SINGLELINE | DT_CALCRECT);
// Move rect to right if in RTL mode // Move rect to right if in RTL mode
if (bRTL) if (bRTL)
{ {

View file

@ -72,6 +72,7 @@ Left=10
Right=-10 Right=-10
Top=97 Top=97
Bottom=118 Bottom=118
MinLen=1
[Field 9] [Field 9]
Type=Button Type=Button

Binary file not shown.