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; jpost(reqHeader, data);
- connect(reply, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(onBugReportError()));
- connect(reply, SIGNAL(finished()), this, SLOT(onBugReportSubmitted()));
- while (m_bugStatus == 0) {
- qApp->processEvents();
- Thread::sleep(50);
- }
- if (m_bugStatus != 1) {
- failure = true;
- QMessageBox::critical(this, tr("Unable to submit"),
- tr("Unable to submit crash report -- are you connected to the internet?"), QMessageBox::Ok);
- break;
- }
- reply->deleteLater();
- if (!file.remove()) {
- failure = true;
- QMessageBox::critical(this, tr("Unable to delete submitted crash report"),
- tr("Unable to delete a submitted crash report -- please check the file permissions in ~/Library/Logs/CrashReporter."), QMessageBox::Ok);
- break;
- }
- }
- if (!failure)
- QMessageBox::information(this, tr("Crash reporter"),
- tr("All crash reports have been submitted. Thank you!"),
- QMessageBox::Ok);
- } else {
- for (int i=0; iglView->isUsingSoftwareFallback())
QMessageBox::warning(this, tr("Insufficient OpenGL capabilities"),
ui->glView->getErrorString(), QMessageBox::Ok);