summaryrefslogtreecommitdiff
path: root/ui/qt5/partitiondiskpage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt5/partitiondiskpage.cc')
-rw-r--r--ui/qt5/partitiondiskpage.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt5/partitiondiskpage.cc b/ui/qt5/partitiondiskpage.cc
index eeb07eb..69a56f0 100644
--- a/ui/qt5/partitiondiskpage.cc
+++ b/ui/qt5/partitiondiskpage.cc
@@ -139,6 +139,6 @@ bool PartitionDiskPage::isComplete() const {
#ifdef HAS_INSTALL_ENV
return diskChooser->currentIndex().row() != -1;
#else /* !HAS_INSTALL_ENV */
- return !diskChooser->text().isEmpty();
+ return diskChooser->text().startsWith("/dev/");
#endif /* HAS_INSTALL_ENV */
}