From beace242e6285922f0a42d0aa947755bb2c6e00b Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 18 Feb 2020 16:53:31 -0600 Subject: Qt UI: Build and run properly in the Runtime Env --- ui/qt5/partitionchoicepage.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ui/qt5/partitionchoicepage.cc') diff --git a/ui/qt5/partitionchoicepage.cc b/ui/qt5/partitionchoicepage.cc index f98ab91..3045b79 100644 --- a/ui/qt5/partitionchoicepage.cc +++ b/ui/qt5/partitionchoicepage.cc @@ -89,6 +89,7 @@ void PartitionChoicePage::initializePage() { manualButton->setHidden(false); manualLabel->setHidden(false); +#ifdef HAS_INSTALL_ENV Horizon::DiskMan::Disk *d = nullptr; for(auto &disk : horizonWizard()->disks) { if(disk.node() == horizonWizard()->chosen_disk) { @@ -117,6 +118,11 @@ void PartitionChoicePage::initializePage() { "Continuing will erase any data present on the disk, if any.")); } } +#else /* !HAS_INSTALL_ENV */ + /* Go ahead and give the user the choice to use existing. */ + useExistingButton->setHidden(false); + useExistingLabel->setHidden(false); +#endif /* HAS_INSTALL_ENV */ QString chosen{QString::fromStdString(horizonWizard()->chosen_disk)}; descLabel->setText(descLabel->text().arg(chosen)); -- cgit v1.2.3-60-g2f50