From 4a6b9f35281159e9afc9c89682d4d30f94d77d5d Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 31 May 2019 11:47:32 +0200 Subject: [PATCH] [partition] Call update from init() in BootLoaderModel - update() (might) add some extra rows for boot and root, which otherwise vanish temporarily when calling init. --- src/modules/partition/core/BootLoaderModel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/partition/core/BootLoaderModel.cpp b/src/modules/partition/core/BootLoaderModel.cpp index eeec12b78..e785050d2 100644 --- a/src/modules/partition/core/BootLoaderModel.cpp +++ b/src/modules/partition/core/BootLoaderModel.cpp @@ -51,12 +51,12 @@ BootLoaderModel::~BootLoaderModel() void BootLoaderModel::init( const QList< Device* >& devices ) { + cDebug() << "BLM::init with" << devices.count() << "devices" << rowCount() << "rows"; beginResetModel(); blockSignals( true ); m_devices = devices; - clear(); - createMbrItems(); + updateInternal(); blockSignals( false ); endResetModel(); @@ -78,6 +78,7 @@ BootLoaderModel::createMbrItems() void BootLoaderModel::update() { + cDebug() << "BLM::update holds" << m_devices.count() << "devices" << rowCount() << "rows"; beginResetModel(); blockSignals( true ); updateInternal();