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

Method on_buttonBox_accepted

qrenderdoc/Windows/Dialogs/CrashDialog.cpp:584–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582}
583
584void CrashDialog::on_buttonBox_accepted()
585{
586 if(!m_ReportID.isEmpty() && ui->checkUpdates->isChecked())
587 {
588 // add to list of bug reports to check for updates.
589 BugReport bug;
590 bug.reportId = m_ReportID;
591 bug.submitDate = QDateTime::currentDateTimeUtc();
592 bug.checkDate = QDateTime::currentDateTimeUtc();
593 m_Config.CrashReport_ReportedBugs.push_back(bug);
594
595 if(m_Config.CrashReport_ReportedBugs.count() > 20)
596 m_Config.CrashReport_ReportedBugs.erase(0);
597
598 m_Config.Save();
599 }
600
601 accept();
602}
603
604void CrashDialog::on_captureFilename_linkActivated(const QString &link)
605{

Callers

nothing calls this directly

Calls 6

acceptFunction · 0.50
isEmptyMethod · 0.45
push_backMethod · 0.45
countMethod · 0.45
eraseMethod · 0.45
SaveMethod · 0.45

Tested by

no test coverage detected