| 582 | } |
| 583 | |
| 584 | void 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 | |
| 604 | void CrashDialog::on_captureFilename_linkActivated(const QString &link) |
| 605 | { |