From 6982edc8ececb03a1e0b9c71476cf612e3638aa4 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Tue, 4 Oct 2016 04:55:02 +0400 Subject: [PATCH] Disable creation of Tear-off band if it exists --- limereport/lrreportdesignwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/limereport/lrreportdesignwindow.cpp b/limereport/lrreportdesignwindow.cpp index 73206d0..cdbac29 100644 --- a/limereport/lrreportdesignwindow.cpp +++ b/limereport/lrreportdesignwindow.cpp @@ -1095,6 +1095,7 @@ void ReportDesignWindow::updateAvaibleBands(){ m_newPageFooter->setEnabled(true); m_newReportHeader->setEnabled(true); m_newReportFooter->setEnabled(true); + m_newTearOffBand->setEnabled(true); foreach(BandDesignIntf* band, m_reportDesignWidget->activePage()->pageItem()->bands()){ switch (band->bandType()) { @@ -1109,6 +1110,8 @@ void ReportDesignWindow::updateAvaibleBands(){ break; case BandDesignIntf::ReportFooter: m_newReportFooter->setEnabled(false); + case BandDesignIntf::TearOffBand: + m_newTearOffBand->setEnabled(false); default: break; }