Insert mode is canceled when band inserted

This commit is contained in:
Arin Alexander 2016-11-05 18:12:10 +03:00
parent 8c09e5ed51
commit 77b151a788

View File

@ -413,6 +413,11 @@ template <typename T>
BaseDesignIntf *PageDesignIntf::internalAddBand(T bandType)
{
if (m_insertMode) {
m_insertMode = false;
emit itemInsertCanceled(m_insertItemType);
}
QSet<BandDesignIntf::BandsType> needParentBands;
needParentBands << BandDesignIntf::SubDetailBand
<< BandDesignIntf::SubDetailHeader