@@ -1855,6 +1855,9 @@ CustomIntroductionPage::CustomIntroductionPage(PackageManagerCore *core)
1855
1855
m_taskButton = nullptr ;
1856
1856
}
1857
1857
#endif
1858
+
1859
+ // By setting this as a commit page, we make sure that the back button on the following page will be disabled
1860
+ setCommitPage (true );
1858
1861
}
1859
1862
1860
1863
/* !
@@ -2305,7 +2308,7 @@ void CustomIntroductionPage::entering()
2305
2308
// Ready for installation text
2306
2309
if (core->isUninstaller ()) {
2307
2310
// m_taskDetailsBrowser->setVisible(false);
2308
- setButtonText (QWizard::NextButton , tr (" U&ninstall" ));
2311
+ setButtonText (QWizard::CommitButton , tr (" U&ninstall" ));
2309
2312
setColoredTitle (tr (" Ready to Uninstall %1" ).arg (productName ()));
2310
2313
m_spaceLabel->setText (tr (" Setup is now ready to begin removing %1 from your computer.<br>"
2311
2314
" <font color=\" red\" >The program directory %2 will be deleted completely</font>, "
@@ -2316,14 +2319,14 @@ void CustomIntroductionPage::entering()
2316
2319
// setComplete(true);
2317
2320
// return;
2318
2321
} else if (core->isMaintainer ()) {
2319
- setButtonText (QWizard::NextButton , tr (" U&pdate" ));
2322
+ setButtonText (QWizard::CommitButton , tr (" U&pdate" ));
2320
2323
// setColoredTitle(tr("Ready to Update Packages"));
2321
2324
m_spaceLabel->setText (tr (" Setup is now ready to begin updating your installation." ));
2322
2325
} else {
2323
2326
Q_ASSERT (core->isInstaller ());
2324
2327
core->calculateComponentsToInstall ();
2325
2328
showInstallerInformation ();
2326
- setButtonText (QWizard::NextButton , tr (" &Install" ));
2329
+ setButtonText (QWizard::CommitButton , tr (" &Install" ));
2327
2330
// setColoredTitle(tr("Ready to Install"));
2328
2331
m_spaceLabel->setText (tr (" Setup is now ready to begin installing %1 on your computer." )
2329
2332
.arg (productName ()));
@@ -2365,7 +2368,7 @@ void CustomIntroductionPage::leaving()
2365
2368
}
2366
2369
2367
2370
// Resetting button text (after changing it to Install/Uninstall/Update)
2368
- setButtonText (QWizard::NextButton , gui ()->defaultButtonText (QWizard::NextButton ));
2371
+ setButtonText (QWizard::CommitButton , gui ()->defaultButtonText (QWizard::CommitButton ));
2369
2372
2370
2373
// Store the install location
2371
2374
packageManagerCore ()->setValue (scTargetDir, targetDir ());
0 commit comments