mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Do not allow error reports on fatal error from dev/unoffiical builds
This commit is contained in:
@@ -1681,6 +1681,11 @@ void MainWindow::LoadInitialLayout()
|
||||
}
|
||||
}
|
||||
|
||||
bool MainWindow::ErrorReportsAllowed()
|
||||
{
|
||||
return ui->action_Send_Error_Report->isEnabled();
|
||||
}
|
||||
|
||||
void MainWindow::RemoveRecentCapture(const QString &filename)
|
||||
{
|
||||
RemoveRecentFile(m_Ctx.Config().RecentCaptureFiles, filename);
|
||||
@@ -2848,6 +2853,9 @@ void MainWindow::on_action_Send_Error_Report_triggered()
|
||||
|
||||
void MainWindow::sendErrorReport(bool forceCaptureInclusion)
|
||||
{
|
||||
if(!ErrorReportsAllowed())
|
||||
return;
|
||||
|
||||
rdcstr report;
|
||||
RENDERDOC_CreateBugReport(RENDERDOC_GetLogFile(), "", report);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user