fix CrashPad restart dialog call

Change-Id: I8764e78158d8ffa255ef26324a2f7359707865d1
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tim Jenssen
2024-02-19 18:31:47 +01:00
parent fe08adbf65
commit 695548cc81

View File

@@ -276,13 +276,7 @@ public:
connect(helpCrashReportingButton, &QAbstractButton::clicked, this, [this] {
showHelpDialog(Tr::tr("Crash Reporting"), CorePlugin::msgCrashpadInformation());
});
connect(&s.enableCrashReporting, &BaseAspect::changed, this, [this] {
const QString restartText = Tr::tr("The change will take effect after restart.");
Core::RestartDialog restartDialog(Core::ICore::dialogParent(), restartText);
restartDialog.exec();
if (restartDialog.result() == QDialog::Accepted)
apply();
});
connect(&s.enableCrashReporting, &BaseAspect::changed, this, &SystemSettingsWidget::apply);
updateClearCrashWidgets();
connect(m_clearCrashReportsButton, &QPushButton::clicked, this, [&] {