Only send email if the email CB is checked.

This commit is contained in:
dfighter1985 2015-03-03 02:33:04 +01:00
parent 9a9b2042dd
commit 001b870654

View file

@ -203,6 +203,8 @@ void CCrashReportWidget::onSendClicked()
SCrashReportData data;
data.description = m_ui.descriptionEdit->toPlainText();
data.report = m_ui.reportEdit->toPlainText();
if( m_ui.emailCB->isChecked() )
data.email = m_ui.emailEdit->text();
m_socket->sendReport( data );