Fixed non-saving crashdump setting and some improvements for setup

Registration for "Settings::CCrashSettings::registerMetadata()" was missing
This commit is contained in:
Klaus Basan
2018-12-02 18:26:49 +01:00
parent 7fc6fcb867
commit 6ef10b92ab
5 changed files with 10 additions and 7 deletions

View File

@@ -14,6 +14,7 @@
#include "blackcore/data/globalsetup.h"
#include "blackmisc/network/url.h"
#include "blackmisc/crashsettings.h"
#include "blackmisc/logmessage.h"
#include "blackmisc/statusmessage.h"
#include "blackconfig/buildconfig.h"
@@ -37,9 +38,9 @@ namespace BlackGui
this->setChecklistInfo();
const CCrashSettings settings = m_crashDumpSettings.get();
ui->cb_CrashDumps->setChecked(settings.isEnabled());
ui->cb_Agree->setChecked(CBuildConfig::isLocalDeveloperDebugBuild());
connect(ui->cb_CrashDumps, &QCheckBox::toggled, this, &CLegalInfoComponent::onAllowCrashDumps);
QPointer<CLegalInfoComponent> myself(this);
@@ -70,7 +71,7 @@ namespace BlackGui
{
CCrashSettings settings = m_crashDumpSettings.get();
settings.setEnabled(checked);
m_crashDumpSettings.setAndSave(settings);
CLogMessage::preformatted(m_crashDumpSettings.setAndSave(settings));
}
void CLegalInfoComponent::showCrashDumpHint()