mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
* This should fix the CrashReporter crashing (*cough*) when not sending the report.
This commit is contained in:
@@ -31,7 +31,8 @@
|
|||||||
|
|
||||||
|
|
||||||
CrashReporter::CrashReporter( const QUrl& url, const QStringList& args )
|
CrashReporter::CrashReporter( const QUrl& url, const QStringList& args )
|
||||||
: m_url( url )
|
: m_reply( 0 )
|
||||||
|
, m_url( url )
|
||||||
{
|
{
|
||||||
setWindowIcon( QIcon( RESPATH "icons/tomahawk-icon-128x128.png" ) );
|
setWindowIcon( QIcon( RESPATH "icons/tomahawk-icon-128x128.png" ) );
|
||||||
|
|
||||||
@@ -136,7 +137,6 @@ CrashReporter::send()
|
|||||||
body += "\r\n";
|
body += "\r\n";
|
||||||
body += "--thkboundary--\r\n";
|
body += "--thkboundary--\r\n";
|
||||||
|
|
||||||
|
|
||||||
QNetworkAccessManager* nam = new QNetworkAccessManager( this );
|
QNetworkAccessManager* nam = new QNetworkAccessManager( this );
|
||||||
m_request->setHeader( QNetworkRequest::ContentTypeHeader, "multipart/form-data; boundary=thkboundary" );
|
m_request->setHeader( QNetworkRequest::ContentTypeHeader, "multipart/form-data; boundary=thkboundary" );
|
||||||
m_reply = nam->post( *m_request, body );
|
m_reply = nam->post( *m_request, body );
|
||||||
|
Reference in New Issue
Block a user