From 4ba0026b8801683d679792d96494c0374633af6c Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Sat, 21 Jan 2017 03:16:16 +0100 Subject: [PATCH] Always write bootloader path. --- src/modules/partition/gui/ChoicePage.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 1f9959f97..68a75c2df 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -565,8 +565,20 @@ ChoicePage::onLeave() } else // installPath is then passed to the bootloader module for MBR setup { - if ( !m_isEfi && m_bootloaderComboBox.isNull() ) - m_core->setBootLoaderInstallPath( selectedDevice()->deviceNode() ); + if ( !m_isEfi ) + { + if ( m_bootloaderComboBox.isNull() ) + { + m_core->setBootLoaderInstallPath( selectedDevice()->deviceNode() ); + } + else + { + QVariant var = m_bootloaderComboBox->currentData( BootLoaderModel::BootLoaderPathRole ); + if ( !var.isValid() ) + return; + m_core->setBootLoaderInstallPath( var.toString() ); + } + } } }