diff --git a/src/modules/partition/gui/PartitionPage.cpp b/src/modules/partition/gui/PartitionPage.cpp index 0dcc4cce9..16dc82a2d 100644 --- a/src/modules/partition/gui/PartitionPage.cpp +++ b/src/modules/partition/gui/PartitionPage.cpp @@ -229,7 +229,7 @@ PartitionPage::onRevertClicked() } ), [ this ]{ m_lastSelectedBootLoaderIndex = -1; - if( !m_ui->bootLoaderComboBox->currentIndex() >= 0 ) { + if( m_ui->bootLoaderComboBox->currentIndex() < 0 ) { m_ui->bootLoaderComboBox->setCurrentIndex( 0 ); } },