mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
Only make it dirty if something changes.
This commit is contained in:
parent
a96b7c1596
commit
9888a4e5d3
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue