# HG changeset patch # User Eugene Ostroukhov # Date 1265849312 28800 # Node ID 9722cf2ffc68634e6e3b30d4c810a8b5e66ba288 # Parent c2bf4fc16af631afcf2f5288c89e1f6bd7cee66b Bugfix 1862 - Pressing Enter on template selection page when there is no template selected will still switch to next page diff -r c2bf4fc16af6 -r 9722cf2ffc68 org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/wizards/WRTProjectTemplateWizardPage.java --- a/org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/wizards/WRTProjectTemplateWizardPage.java Wed Feb 10 14:21:13 2010 -0800 +++ b/org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/wizards/WRTProjectTemplateWizardPage.java Wed Feb 10 16:48:32 2010 -0800 @@ -140,8 +140,10 @@ Display display = getShell().getDisplay(); display.asyncExec(new Runnable() { public void run() { - IWizardPage nextPage = getWizard().getNextPage(WRTProjectTemplateWizardPage.this); - getContainer().showPage(nextPage); + if (isPageComplete()) { + IWizardPage nextPage = getWizard().getNextPage(WRTProjectTemplateWizardPage.this); + getContainer().showPage(nextPage); + } } }); }