summaryrefslogtreecommitdiff
path: root/ui/qt5/partitionpage.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-14 13:30:05 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-14 13:30:05 -0600
commitdbadd242be012ff684620bd80f689fc8a541f762 (patch)
treead78452394e966723ed4475d0a188248039208dd /ui/qt5/partitionpage.cc
parent7cce0e9d14e7e94dd13bda65ebbffc019c38760c (diff)
downloadhorizon-dbadd242be012ff684620bd80f689fc8a541f762.tar.gz
horizon-dbadd242be012ff684620bd80f689fc8a541f762.tar.bz2
horizon-dbadd242be012ff684620bd80f689fc8a541f762.tar.xz
horizon-dbadd242be012ff684620bd80f689fc8a541f762.zip
Qt UI: Add Disk Selection screen
Diffstat (limited to 'ui/qt5/partitionpage.cc')
-rw-r--r--ui/qt5/partitionpage.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/qt5/partitionpage.cc b/ui/qt5/partitionpage.cc
index 8ca704a..1d259b1 100644
--- a/ui/qt5/partitionpage.cc
+++ b/ui/qt5/partitionpage.cc
@@ -4,7 +4,7 @@
* horizon-qt5, the Qt 5 user interface for
* Project Horizon
*
- * Copyright (c) 2019 Adélie Linux and contributors. All rights reserved.
+ * Copyright (c) 2020 Adélie Linux and contributors. All rights reserved.
* This code is licensed under the AGPL 3.0 license, as noted in the
* LICENSE-code file in the root directory of this repository.
*
@@ -14,6 +14,7 @@
#include "partitionpage.hh"
#include <QVBoxLayout>
+#include "partitiondiskpage.hh"
PartitionPage::PartitionPage(QWidget *parent) : HorizonWizardPage(parent) {
loadWatermark("disk");
@@ -90,6 +91,10 @@ void PartitionPage::processDisks(void *disk_obj) {
horizonWizard()->disks.swap(*disks);
delete disks;
+ /* ensure that the Disk page receives our new disk information */
+ horizonWizard()->removePage(HorizonWizard::Page_PartitionDisk);
+ horizonWizard()->setPage(HorizonWizard::Page_PartitionDisk, new PartitionDiskPage);
+
scanDone = true;
emit completeChanged();
wizard()->next();