0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-25 00:54:39 +03:00

Script browser update has been fixed

This commit is contained in:
Arin Alex 2017-02-22 00:20:37 +03:00
parent 3975406487
commit 117023e920
2 changed files with 2 additions and 0 deletions

View File

@ -539,6 +539,7 @@ void ReportDesignWindow::startNewReport()
m_reportDesignWidget->createStartPage(); m_reportDesignWidget->createStartPage();
m_lblReportName->setText(""); m_lblReportName->setText("");
updateRedoUndo(); updateRedoUndo();
m_reportDesignWidget->slotPagesLoadFinished();
m_newPageHeader->setEnabled(true); m_newPageHeader->setEnabled(true);
m_newPageFooter->setEnabled(true); m_newPageFooter->setEnabled(true);
m_newReportHeader->setEnabled(true); m_newReportHeader->setEnabled(true);

View File

@ -64,6 +64,7 @@ void ScriptBrowser::setReportEditor(ReportDesignWidget* report)
void ScriptBrowser::updateFunctionTree() void ScriptBrowser::updateFunctionTree()
{ {
ui->twFunctions->clear();
ScriptEngineManager* sm = reportEditor()->scriptManager(); ScriptEngineManager* sm = reportEditor()->scriptManager();
QMap<QString,QTreeWidgetItem*> categ; QMap<QString,QTreeWidgetItem*> categ;
foreach(ScriptFunctionDesc fd, sm->functionsDescriber()){ foreach(ScriptFunctionDesc fd, sm->functionsDescriber()){