In local build license agreement is preselected ("agreed")

This commit is contained in:
Klaus Basan
2018-07-14 19:43:09 +02:00
parent 1b8e79f77b
commit 6f9d686b4d

View File

@@ -8,10 +8,12 @@
*/
#include "blackmisc/statusmessage.h"
#include "blackconfig/buildconfig.h"
#include "legalinfocomponent.h"
#include "ui_legalinfocomponent.h"
using namespace BlackMisc;
using namespace BlackConfig;
namespace BlackGui
{
@@ -24,6 +26,7 @@ namespace BlackGui
ui->setupUi(this);
const bool cd = m_crashDumpUploadEnabled.get();
ui->cb_CrashDumps->setChecked(cd);
ui->cb_Agree->setChecked(CBuildConfig::isLocalDeveloperDebugBuild());
connect(ui->cb_CrashDumps, &QCheckBox::toggled, this, &CLegalInfoComponent::onAllowCrashDumps);
}