diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-11-17 21:49:40 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-11-17 21:49:40 -0600 |
commit | 8801c9ccaeaab68174312cf025bce771e2ea77df (patch) | |
tree | c3a905cc88fe498c74403024b3ae7f500e3b6bae /ui/qt5/horizonwizard.cc | |
parent | 0eb21f964b20d09c1c18a4d26231910b36719183 (diff) | |
download | horizon-8801c9ccaeaab68174312cf025bce771e2ea77df.tar.gz horizon-8801c9ccaeaab68174312cf025bce771e2ea77df.tar.bz2 horizon-8801c9ccaeaab68174312cf025bce771e2ea77df.tar.xz horizon-8801c9ccaeaab68174312cf025bce771e2ea77df.zip |
Qt UI: Remove "Use available space" option
Way too buggy in its present state, unfortunately. Needs a lot more logic.
Closes: #377, #376
Diffstat (limited to 'ui/qt5/horizonwizard.cc')
-rw-r--r-- | ui/qt5/horizonwizard.cc | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc index 97b2939..8cd1941 100644 --- a/ui/qt5/horizonwizard.cc +++ b/ui/qt5/horizonwizard.cc @@ -608,19 +608,8 @@ QString HorizonWizard::toHScript() { if(erase) { lines << eraseDiskForArch(chosen_disk, arch, subarch); } else { -#ifdef HAS_INSTALL_ENV - Disk *disk = nullptr; - for(auto &d_iter : disks) { - if(d_iter.node() == chosen_disk) { - disk = &d_iter; - break; - } - } - Q_ASSERT(disk != nullptr); - start = disk->partitions().size() + 1; -#else /* !HAS_INSTALL_ENV */ + /* This branch will be taken when "use available space" is back. */ Q_ASSERT(false); -#endif /* HAS_INSTALL_ENV */ } if(this->grub) { |