Bugfix 1862 - Pressing Enter on template selection page when there is no template selected will still switch to next page
authorEugene Ostroukhov <eugeneo@symbian.org>
Wed, 10 Feb 2010 16:48:32 -0800
changeset 133 9722cf2ffc68
parent 132 c2bf4fc16af6
child 134 b3adf4a221f2
Bugfix 1862 - Pressing Enter on template selection page when there is no template selected will still switch to next page
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);
+				}
 			}
 		});
 	}