Disable creation of Tear-off band if it exists

This commit is contained in:
Arin Alexander 2016-10-04 04:55:02 +04:00
parent d6eedd8cbd
commit 6982edc8ec

View File

@ -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;
}