MCPcopy Create free account
hub / github.com/baldurk/renderdoc / sendErrorReport

Method sendErrorReport

qrenderdoc/Windows/MainWindow.cpp:2973–2998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2971}
2972
2973void 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
3000void MainWindow::on_action_Check_for_Updates_triggered()
3001{

Callers 1

CaptureContextMethod · 0.80

Calls 7

fromLatin1Function · 0.85
showFunction · 0.50
removeFunction · 0.50
QStringFunction · 0.50
ConfigMethod · 0.45
SaveMethod · 0.45

Tested by

no test coverage detected