mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-23 08:29:07 +03:00
Prevent multi run initscript
Prevent multi run initscript Prevent multi run initscript & Build without HAVE_UI_LOADER has been fixed
This commit is contained in:
@@ -59,7 +59,9 @@ void ScriptBrowser::setReportEditor(ReportDesignWidget* report)
|
||||
m_report=report;
|
||||
connect(m_report,SIGNAL(cleared()),this,SLOT(slotClear()));
|
||||
connect(m_report,SIGNAL(loaded()),this,SLOT(slotUpdate()));
|
||||
#ifdef HAVE_UI_LOADER
|
||||
connect(m_report->scriptContext(), SIGNAL(dialogAdded(QString)), this, SLOT(slotDialogAdded(QString)));
|
||||
#endif
|
||||
updateFunctionTree();
|
||||
}
|
||||
|
||||
@@ -139,12 +141,13 @@ void ScriptBrowser::slotUpdate()
|
||||
updateFunctionTree();
|
||||
}
|
||||
|
||||
#ifdef HAVE_UI_LOADER
|
||||
|
||||
void ScriptBrowser::slotDialogAdded(QString)
|
||||
{
|
||||
updateDialogsTree();
|
||||
}
|
||||
|
||||
#ifdef HAVE_UI_LOADER
|
||||
void ScriptBrowser::on_tbAddDialog_clicked()
|
||||
{
|
||||
QFileDialog fileDialog(this);
|
||||
|
@@ -62,8 +62,8 @@ protected:
|
||||
private slots:
|
||||
void slotClear();
|
||||
void slotUpdate();
|
||||
void slotDialogAdded(QString);
|
||||
#ifdef HAVE_UI_LOADER
|
||||
void slotDialogAdded(QString);
|
||||
void on_tbAddDialog_clicked();
|
||||
void on_tbRunDialog_clicked();
|
||||
void on_tbDeleteDialog_clicked();
|
||||
|
Reference in New Issue
Block a user