From a253101258a8e92fec96ac868f58a7b9804da888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramon=20Buld=C3=B3?= Date: Sun, 29 Mar 2015 16:55:25 +0200 Subject: [PATCH] [partition] Disable bootloader disk selection when installing in a efi system. --- src/modules/partition/gui/PartitionPage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/partition/gui/PartitionPage.cpp b/src/modules/partition/gui/PartitionPage.cpp index 175ad0f47..7039219d5 100644 --- a/src/modules/partition/gui/PartitionPage.cpp +++ b/src/modules/partition/gui/PartitionPage.cpp @@ -42,6 +42,7 @@ #include #include #include +#include PartitionPage::PartitionPage( PartitionCoreModule* core, QWidget* parent ) : QWidget( parent ) @@ -77,6 +78,11 @@ PartitionPage::PartitionPage( PartitionCoreModule* core, QWidget* parent ) connect( m_ui->editButton, &QAbstractButton::clicked, this, &PartitionPage::onEditClicked ); connect( m_ui->deleteButton, &QAbstractButton::clicked, this, &PartitionPage::onDeleteClicked ); + if ( QDir( "/sys/firmware/efi/efivars" ).exists() ) { + m_ui->bootLoaderComboBox->setDisabled( true ); + m_ui->label_3->setDisabled( true ); + } + CALAMARES_RETRANSLATE( m_ui->retranslateUi( this ); ) }