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:
parent
29b7da028d
commit
c31682240d
3 changed files with 3 additions and 2 deletions
|
@ -674,7 +674,7 @@ BOOL CALLBACK ParentWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPara
|
|||
if (message == WM_NOTIFY_OUTER_NEXT && wParam == 1)
|
||||
{
|
||||
// Don't call leave function if fields aren't valid
|
||||
if (!ValidateFields())
|
||||
if (!g_NotifyField && !ValidateFields())
|
||||
return 0;
|
||||
// Get the settings ready for the leave function verification
|
||||
SaveSettings();
|
||||
|
@ -728,7 +728,7 @@ BOOL CALLBACK cfgDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
// Calculate needed size of the control
|
||||
DrawText(lpdis->hDC, pField->pszText, -1, &rc, DT_VCENTER | DT_SINGLELINE | DT_CALCRECT);
|
||||
|
||||
|
||||
// Move rect to right if in RTL mode
|
||||
if (bRTL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue