| 2971 | } |
| 2972 | |
| 2973 | void MainWindow::sendErrorReport(bool forceCaptureInclusion) |
| 2974 | { |
| 2975 | if(!ErrorReportsAllowed()) |
| 2976 | return; |
| 2977 | |
| 2978 | rdcstr report; |
| 2979 | RENDERDOC_CreateBugReport(RENDERDOC_GetLogFile(), "", report); |
| 2980 | |
| 2981 | QVariantMap json; |
| 2982 | |
| 2983 | json[lit("version")] = lit(FULL_VERSION_STRING); |
| 2984 | json[lit("gitcommit")] = QString::fromLatin1(RENDERDOC_GetCommitHash()); |
| 2985 | json[lit("replaycrash")] = 1; |
| 2986 | json[lit("manual")] = 1; |
| 2987 | json[lit("forcecapture")] = forceCaptureInclusion ? 1 : 0; |
| 2988 | json[lit("report")] = (QString)report; |
| 2989 | |
| 2990 | CrashDialog crash(m_Ctx.Config(), json, this); |
| 2991 | |
| 2992 | RDDialog::show(&crash); |
| 2993 | |
| 2994 | m_Ctx.Config().Save(); |
| 2995 | PopulateReportedBugs(); |
| 2996 | |
| 2997 | QFile::remove(QString(report)); |
| 2998 | } |
| 2999 | |
| 3000 | void MainWindow::on_action_Check_for_Updates_triggered() |
| 3001 | { |
no test coverage detected