[partition] Call update from init() in BootLoaderModel
- update() (might) add some extra rows for boot and root, which otherwise vanish temporarily when calling init.
This commit is contained in:
parent
d5f0bdd28c
commit
4a6b9f3528
@ -51,12 +51,12 @@ BootLoaderModel::~BootLoaderModel()
|
|||||||
void
|
void
|
||||||
BootLoaderModel::init( const QList< Device* >& devices )
|
BootLoaderModel::init( const QList< Device* >& devices )
|
||||||
{
|
{
|
||||||
|
cDebug() << "BLM::init with" << devices.count() << "devices" << rowCount() << "rows";
|
||||||
beginResetModel();
|
beginResetModel();
|
||||||
blockSignals( true );
|
blockSignals( true );
|
||||||
|
|
||||||
m_devices = devices;
|
m_devices = devices;
|
||||||
clear();
|
updateInternal();
|
||||||
createMbrItems();
|
|
||||||
|
|
||||||
blockSignals( false );
|
blockSignals( false );
|
||||||
endResetModel();
|
endResetModel();
|
||||||
@ -78,6 +78,7 @@ BootLoaderModel::createMbrItems()
|
|||||||
void
|
void
|
||||||
BootLoaderModel::update()
|
BootLoaderModel::update()
|
||||||
{
|
{
|
||||||
|
cDebug() << "BLM::update holds" << m_devices.count() << "devices" << rowCount() << "rows";
|
||||||
beginResetModel();
|
beginResetModel();
|
||||||
blockSignals( true );
|
blockSignals( true );
|
||||||
updateInternal();
|
updateInternal();
|
||||||
|
Loading…
Reference in New Issue
Block a user