From 7074829c24cb21832b71daa9f980c9ac770df78b Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 2 Apr 2019 04:55:12 -0400 Subject: [PATCH] [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. --- src/modules/partition/core/BootLoaderModel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/partition/core/BootLoaderModel.cpp b/src/modules/partition/core/BootLoaderModel.cpp index 4f48e0787..16c6ce3c8 100644 --- a/src/modules/partition/core/BootLoaderModel.cpp +++ b/src/modules/partition/core/BootLoaderModel.cpp @@ -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