[partition] Initialising BootLoader model is atomic

- don't send a bunch of update signals, do only a single
   model-reset when the BootLoaderModel is (re-)initialised.
This commit is contained in:
Adriaan de Groot 2019-04-02 04:55:12 -04:00
parent cccd4402d8
commit 7074829c24

View File

@ -47,9 +47,15 @@ BootLoaderModel::~BootLoaderModel()
void
BootLoaderModel::init( const QList< Device* >& devices )
{
beginResetModel();
blockSignals( true );
m_devices = devices;
clear();
createMbrItems();
blockSignals( false );
endResetModel();
}
void