mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 17:05:36 -04:00
[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
1 changed files with 6 additions and 0 deletions
|
@ -47,9 +47,15 @@ BootLoaderModel::~BootLoaderModel()
|
||||||
void
|
void
|
||||||
BootLoaderModel::init( const QList< Device* >& devices )
|
BootLoaderModel::init( const QList< Device* >& devices )
|
||||||
{
|
{
|
||||||
|
beginResetModel();
|
||||||
|
blockSignals( true );
|
||||||
|
|
||||||
m_devices = devices;
|
m_devices = devices;
|
||||||
clear();
|
clear();
|
||||||
createMbrItems();
|
createMbrItems();
|
||||||
|
|
||||||
|
blockSignals( false );
|
||||||
|
endResetModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue