0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 08:34:38 +03:00

Fix Lime Report Designer's Title Bar not showing Report's Name after saving.

This commit is contained in:
silverhawk89 2020-07-28 21:09:45 -04:00
parent c9efbc9cff
commit e74bc09eda
No known key found for this signature in database
GPG Key ID: 42AC9A5DF38AF0F4
2 changed files with 3 additions and 0 deletions

View File

@ -1126,6 +1126,7 @@ void ReportDesignWindow::slotSaveReport()
QString filename = m_reportDesignWidget->reportFileName(); QString filename = m_reportDesignWidget->reportFileName();
m_lblReportName->setText(filename); m_lblReportName->setText(filename);
if(!filename.isEmpty()) addRecentFile(filename); if(!filename.isEmpty()) addRecentFile(filename);
setWindowTitle(m_reportDesignWidget->report()->reportName() + " - Lime Report Designer");
} }
void ReportDesignWindow::slotSaveReportAs() void ReportDesignWindow::slotSaveReportAs()
@ -1137,6 +1138,7 @@ void ReportDesignWindow::slotSaveReportAs()
m_reportDesignWidget->saveToFile(fileName); m_reportDesignWidget->saveToFile(fileName);
m_lblReportName->setText(m_reportDesignWidget->reportFileName()); m_lblReportName->setText(m_reportDesignWidget->reportFileName());
addRecentFile(fileName); addRecentFile(fileName);
setWindowTitle(m_reportDesignWidget->report()->reportName() + " - Lime Report Designer");
} }
} }

View File

@ -876,6 +876,7 @@ bool ReportEnginePrivate::saveToFile(const QString &fileName)
} }
} }
dropChanges(); dropChanges();
this->setReportName(fi.baseName());
return saved; return saved;
} }