0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-12-15 17:29:54 +03:00

External control unsaved changes

This commit is contained in:
Sanych
2023-11-16 10:49:06 +03:00
parent ed9c66b956
commit e4b8701b21
3 changed files with 5 additions and 5 deletions

View File

@@ -977,9 +977,9 @@ QSettings*ReportDesignWindow::settings()
}
}
void ReportDesignWindow::slotNewReport()
void ReportDesignWindow::slotNewReport(bool needCheck)
{
if (checkNeedToSave()) {
if (!needCheck || checkNeedToSave()) {
m_lblReportName->setText("");
startNewReport();
m_deletePageAction->setEnabled(false);