Ref T271, Ref T213 info about crashreport

This commit is contained in:
Klaus Basan
2018-05-23 17:51:29 +02:00
parent 2dd026b2df
commit 34252d5e69
2 changed files with 17 additions and 8 deletions

View File

@@ -21,20 +21,19 @@ namespace BlackGui
ui(new Ui::CSettingsAdvancedComponent)
{
ui->setupUi(this);
ui->m_crashDumpsUpload->setChecked(m_crashDumpUploadEnabled.getThreadLocal());
connect(ui->m_crashDumpsUpload, &QCheckBox::stateChanged, this, &CSettingsAdvancedComponent::crashDumpUploadEnabledChanged);
ui->cb_crashDumpsUpload->setChecked(m_crashDumpUploadEnabled.getThreadLocal());
connect(ui->cb_crashDumpsUpload, &QCheckBox::stateChanged, this, &CSettingsAdvancedComponent::crashDumpUploadEnabledChanged);
}
CSettingsAdvancedComponent::~CSettingsAdvancedComponent()
{
}
{ }
void CSettingsAdvancedComponent::crashDumpUploadEnabledChanged(int state)
{
auto text = ui->m_crashDumpsUpload->text();
auto text = ui->cb_crashDumpsUpload->text();
if (!text.endsWith("(restart needed)"))
{
ui->m_crashDumpsUpload->setText(ui->m_crashDumpsUpload->text() + " (restart needed)");
ui->cb_crashDumpsUpload->setText(ui->cb_crashDumpsUpload->text() + " (restart needed)");
}
m_crashDumpUploadEnabled.set(state == Qt::Checked);
}

View File

@@ -15,13 +15,13 @@
</property>
<layout class="QGridLayout" name="gl_SettingsAdvanced">
<item row="0" column="0">
<widget class="QCheckBox" name="m_crashDumpsUpload">
<widget class="QCheckBox" name="cb_crashDumpsUpload">
<property name="text">
<string>Upload crash dumps</string>
</property>
</widget>
</item>
<item row="1" column="0">
<item row="2" column="0">
<spacer name="vs_SettingsAdvanced">
<property name="orientation">
<enum>Qt::Vertical</enum>
@@ -34,6 +34,16 @@
</property>
</spacer>
</item>
<item row="1" column="0">
<widget class="QLabel" name="lbl_CrashDumpInfo">
<property name="text">
<string>Info: By enabling &quot;crash dumps&quot; you will allow us to send information about your system, IP address and swift installation to our crash dump server. We will use these information to improve swift and then delete them. We appreciate if you help us by sending these information.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>