Only send email if the email CB is checked.

--HG--
branch : feature-crashreport
This commit is contained in:
dfighter1985 2015-03-03 02:33:04 +01:00
parent 3108e5e013
commit d561a7078c

View file

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