summaryrefslogtreecommitdiff
path: root/ui/qt5/partitionchoicepage.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-18 16:53:31 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-18 16:53:31 -0600
commitbeace242e6285922f0a42d0aa947755bb2c6e00b (patch)
treebb97f134fb9123536cb74cb56a551a64938c5016 /ui/qt5/partitionchoicepage.cc
parent4646086e4a621574227cce8aaf30b16803f302bf (diff)
downloadhorizon-beace242e6285922f0a42d0aa947755bb2c6e00b.tar.gz
horizon-beace242e6285922f0a42d0aa947755bb2c6e00b.tar.bz2
horizon-beace242e6285922f0a42d0aa947755bb2c6e00b.tar.xz
horizon-beace242e6285922f0a42d0aa947755bb2c6e00b.zip
Qt UI: Build and run properly in the Runtime Env
Diffstat (limited to 'ui/qt5/partitionchoicepage.cc')
-rw-r--r--ui/qt5/partitionchoicepage.cc6
1 files changed, 6 insertions, 0 deletions
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));