Partition: don't set text if button doesn't exist

This commit is contained in:
Adriaan de Groot 2021-08-05 14:23:11 +02:00
parent 670d8089bc
commit 2820316d16

View File

@ -140,8 +140,11 @@ ChoicePage::retranslate()
m_previewBeforeLabel->setText( tr( "Current:" ) );
m_previewAfterLabel->setText( tr( "After:" ) );
m_somethingElseButton->setText( tr( "<strong>Manual partitioning</strong><br/>"
"You can create or resize partitions yourself." ) );
if ( m_somethingElseButton )
{
m_somethingElseButton->setText( tr( "<strong>Manual partitioning</strong><br/>"
"You can create or resize partitions yourself." ) );
}
updateSwapChoicesTr( m_eraseSwapChoiceComboBox );
}