Don't offer send in non-dev mode when there's no log file specified.

--HG--
branch : feature-crashreport
This commit is contained in:
dfighter1985 2015-03-03 02:37:51 +01:00
parent d561a7078c
commit 7ca008ba86

View file

@ -141,7 +141,7 @@ void CCrashReportWidget::setup( const std::vector< std::pair< std::string, std::
else else
{ {
// If -host is specified, offer the send function // If -host is specified, offer the send function
if( !m_socket->url().isEmpty() ) if( !m_socket->url().isEmpty() && !m_fileName.isEmpty() )
{ {
QPushButton *sendButton = new QPushButton( tr( "Send report" ), this ); QPushButton *sendButton = new QPushButton( tr( "Send report" ), this );
connect( sendButton, SIGNAL( clicked( bool ) ), this, SLOT( onSendClicked() ) ); connect( sendButton, SIGNAL( clicked( bool ) ), this, SLOT( onSendClicked() ) );