From 695548cc812c7892607dc43bab6869d78668aa62 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Mon, 19 Feb 2024 18:31:47 +0100 Subject: [PATCH] fix CrashPad restart dialog call Change-Id: I8764e78158d8ffa255ef26324a2f7359707865d1 Reviewed-by: Qt CI Patch Build Bot Reviewed-by: Tim Jenssen --- src/plugins/coreplugin/systemsettings.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/plugins/coreplugin/systemsettings.cpp b/src/plugins/coreplugin/systemsettings.cpp index ccaef59b8b0..1937d125642 100644 --- a/src/plugins/coreplugin/systemsettings.cpp +++ b/src/plugins/coreplugin/systemsettings.cpp @@ -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, [&] {