From 5f86f4cdc83a7d49679551ac5fec6c63991a549e Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 24 Apr 2012 23:56:37 -0400 Subject: [PATCH] got rid of old crash reporter code --- src/mtsgui/mainwindow.cpp | 84 --------------------------------------- 1 file changed, 84 deletions(-) diff --git a/src/mtsgui/mainwindow.cpp b/src/mtsgui/mainwindow.cpp index 698cb91c..9776614b 100644 --- a/src/mtsgui/mainwindow.cpp +++ b/src/mtsgui/mainwindow.cpp @@ -206,90 +206,6 @@ MainWindow::MainWindow(QWidget *parent) : m_networkManager = new QNetworkAccessManager(this); -#if defined(__OSX__) && 0 // Disable crash reports for now - /* Submit crash reports on OSX */ - QDir crashDir = QDir::home(); - crashDir.cd("Library/Logs/CrashReporter"); - QFileInfoList crashReports = crashDir.entryInfoList(QStringList("mtsgui_*"), - QDir::Files, QDir::Name); - - if (crashReports.size() > 0) { - if (QMessageBox::question(this, tr("Crash reports detected"), - QString("

It appears that Mitsuba has crashed on a previous run!

" - "%1 crash reports were found. Would you like to submit them?").arg(crashReports.size()), - QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) { - bool failure = false; - for (int i=0; ipw_name); - - QString boundary("5da85133908e2"); // some arbitrary value - QByteArray data(QString("--" + boundary + "\r\n").toAscii()); - data.append(QString("Content-Disposition: form-data; name=\"bugreport\"; filename=\"%1\"\r\n").arg(file.fileName())); - data.append("Content-Type: application/octet-stream\r\n\r\n"); - QString header = QString("Bug report from machine \"%1\", user \"%2\", filename \"%3\"" - ", Mitsuba version %4").arg(getFQDN().c_str()).arg(username).arg(file.fileName()).arg(Version(MTS_VERSION).toStringComplete().c_str()); - data.append(header + "\r\n"); - for (int j=0; j