[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:
parent
cccd4402d8
commit
7074829c24
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user