Author: locilka Date: Fri Aug 24 10:27:05 2007 New Revision: 40443 URL: http://svn.opensuse.org/viewcvs/yast?rev=40443&view=rev Log: Improved displaying licenses (in a separate wizard window) Modified: trunk/packager/src/modules/ProductLicense.ycp Modified: trunk/packager/src/modules/ProductLicense.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/ProductLicense.ycp?rev=40443&r1=40442&r2=40443&view=diff ============================================================================== --- trunk/packager/src/modules/ProductLicense.ycp (original) +++ trunk/packager/src/modules/ProductLicense.ycp Fri Aug 24 10:27:05 2007 @@ -24,6 +24,7 @@ import "FileUtils"; import "ProductFeatures"; import "String"; +import "WorkflowManager"; // IMPORTANT: maintainer of yast2-installation is responsible for this module @@ -501,10 +502,16 @@ } // bugzilla #303922 - if (Stage::initial()) { - Wizard::OpenNextBackStepsDialog(); - } else { - Wizard::OpenNextBackDialog(); + // src_id == nil (the initial product license) + if (src_id != nil) { + // use wizard with steps + if (Stage::initial()) { + Wizard::OpenNextBackStepsDialog(); + WorkflowManager::RedrawWizardSteps(); + // use normal wizard + } else { + Wizard::OpenNextBackDialog(); + } } DisplayLicenseDialog (available_langs, enable_back, lic_lang, licenses); @@ -647,7 +654,9 @@ CleanUpLicense(tmpdir); // bugzilla #303922 - Wizard::CloseDialog(); + if (src_id != nil) { + Wizard::CloseDialog(); + } return ret; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org