summaryrefslogtreecommitdiff
path: root/experimental/horizon/noninstall-mount.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-06-04 00:47:50 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-06-04 00:47:50 +0000
commit45b55733a9efe8039f281a2c28591825bf553cec (patch)
tree480a123f2d87f4fe563415bcdae4ea16e3d8638c /experimental/horizon/noninstall-mount.patch
parentb8e3ced8b8c72521077a2c12ed860e2e5b1b7075 (diff)
downloadpackages-45b55733a9efe8039f281a2c28591825bf553cec.tar.gz
packages-45b55733a9efe8039f281a2c28591825bf553cec.tar.bz2
packages-45b55733a9efe8039f281a2c28591825bf553cec.tar.xz
packages-45b55733a9efe8039f281a2c28591825bf553cec.zip
experimental/horizon: Bump to 0.9.1
Diffstat (limited to 'experimental/horizon/noninstall-mount.patch')
-rw-r--r--experimental/horizon/noninstall-mount.patch61
1 files changed, 0 insertions, 61 deletions
diff --git a/experimental/horizon/noninstall-mount.patch b/experimental/horizon/noninstall-mount.patch
deleted file mode 100644
index 2b0e7152a..000000000
--- a/experimental/horizon/noninstall-mount.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc
-index 143ae43..556a6f3 100644
---- a/ui/qt5/horizonwizard.cc
-+++ b/ui/qt5/horizonwizard.cc
-@@ -542,7 +542,9 @@ QString HorizonWizard::toHScript() {
- break;
- }
-
-+#ifdef HAS_INSTALL_ENV
- part_lines << (dynamic_cast<PartitionMountPage *>(page(Page_PartitionMount)))->mountLines();
-+#endif /* HAS_INSTALL_ENV */
-
- if(chosen_disk.empty()) {
- lines << part_lines;
-diff --git a/ui/qt5/mountdialog.cc b/ui/qt5/mountdialog.cc
-index f986423..103e442 100644
---- a/ui/qt5/mountdialog.cc
-+++ b/ui/qt5/mountdialog.cc
-@@ -16,6 +16,7 @@
- #include <QLabel>
- #include <QLineEdit>
- #include <QPushButton>
-+#include <QSet>
- #include <QVBoxLayout>
-
- MountDialog::MountDialog(QStringList skipParts, QStringList skipMounts,
-@@ -75,7 +76,11 @@ MountDialog::MountDialog(QStringList skipParts, QStringList skipMounts,
-
- QVBoxLayout *controlLayout = new QVBoxLayout;
- controlLayout->addWidget(new QLabel(tr("Partition")));
-+#ifdef HAS_INSTALL_ENV
- controlLayout->addWidget(partList);
-+#else /* !HAS_INSTALL_ENV */
-+ controlLayout->addWidget(partInput);
-+#endif /* HAS_INSTALL_ENV */
- controlLayout->addWidget(new QLabel(tr("will be mounted on")));
- controlLayout->addWidget(pathInput);
-
-@@ -87,14 +92,22 @@ MountDialog::MountDialog(QStringList skipParts, QStringList skipMounts,
- }
-
- QString MountDialog::partition() const {
-+#ifdef HAS_INSTALL_ENV
- assert(partList->currentItem() != nullptr);
- return partList->currentItem()->text();
-+#else /* !HAS_INSTALL_ENV */
-+ return partInput->text();
-+#endif /* HAS_INSTALL_ENV */
- }
-
- void MountDialog::setPartition(const QString &part) {
-+#ifdef HAS_INSTALL_ENV
- QList<QListWidgetItem *> candidate = partList->findItems(part, Qt::MatchExactly);
- if(candidate.empty()) return;
- partList->setCurrentItem(candidate.at(0));
-+#else /* !HAS_INSTALL_ENV */
-+ partInput->setText(part);
-+#endif /* HAS_INSTALL_ENV */
- }
-
- QString MountDialog::mountPoint() const {