From 9888a4e5d3dd4356f72b19284400341e058fe702 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 24 Jun 2016 17:06:39 +0200 Subject: [PATCH] Only make it dirty if something changes. --- src/modules/partition/gui/PartitionSizeController.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/partition/gui/PartitionSizeController.cpp b/src/modules/partition/gui/PartitionSizeController.cpp index 73e6bfdb4..c602501db 100644 --- a/src/modules/partition/gui/PartitionSizeController.cpp +++ b/src/modules/partition/gui/PartitionSizeController.cpp @@ -187,7 +187,8 @@ PartitionSizeController::doUpdateSpinBox() return; qint64 mbSize = m_partition->length() * m_device->logicalSectorSize() / 1024 / 1024; m_spinBox->setValue( mbSize ); - if ( m_currentSpinBoxValue != -1 ) //it's not the first time we're setting it + if ( m_currentSpinBoxValue != -1 && //if it's not the first time we're setting it + m_currentSpinBoxValue != mbSize ) //and the operation changes the SB value m_dirty = true; m_currentSpinBoxValue = mbSize; }