diff --git a/src/crashreporter/CrashReporter.cpp b/src/crashreporter/CrashReporter.cpp index 252e89c4e..e4fbfb7b7 100644 --- a/src/crashreporter/CrashReporter.cpp +++ b/src/crashreporter/CrashReporter.cpp @@ -30,7 +30,8 @@ #define RESPATH ":/data/" -CrashReporter::CrashReporter( const QStringList& args ) +CrashReporter::CrashReporter( const QUrl& url, const QStringList& args ) + : m_url( url ) { setWindowIcon( QIcon( RESPATH "icons/tomahawk-icon-128x128.png" ) ); @@ -56,7 +57,7 @@ CrashReporter::CrashReporter( const QStringList& args ) ui.bottomLabel->setIndent( 1 ); #endif //Q_OS_MAC - m_request = new QNetworkRequest( QUrl( "http://oops.tomahawk-player.org/addreport.php" ) ); + m_request = new QNetworkRequest( m_url ); m_dir = args.value( 1 ); m_minidump = m_dir + '/' + args.value( 2 ) + ".dmp"; diff --git a/src/crashreporter/CrashReporter.h b/src/crashreporter/CrashReporter.h index 09a62acba..82f622d2f 100644 --- a/src/crashreporter/CrashReporter.h +++ b/src/crashreporter/CrashReporter.h @@ -32,7 +32,7 @@ class CrashReporter : public QDialog Q_OBJECT public: - CrashReporter( const QStringList& argv ); + CrashReporter( const QUrl& url, const QStringList& argv ); virtual ~CrashReporter( ); private: @@ -43,6 +43,7 @@ private: QString m_product_name; QNetworkRequest* m_request; QNetworkReply* m_reply; + QUrl m_url; public slots: void send(); diff --git a/src/crashreporter/main.cpp b/src/crashreporter/main.cpp index 7ae70acbe..442aec89d 100644 --- a/src/crashreporter/main.cpp +++ b/src/crashreporter/main.cpp @@ -45,7 +45,7 @@ int main( int argc, char* argv[] ) return 1; } - CrashReporter reporter( app.arguments() ); + CrashReporter reporter( QUrl( "http://oops.tomahawk-player.org/addreport.php" ), app.arguments() ); reporter.show(); return app.exec();