Bugfix 1862 - Pressing Enter on template selection page when there is no template selected will still switch to next page
--- 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);
+ }
}
});
}