[PC-BSD Commits] r7657 - pcbsd/current/src-qt4/pc-sysinstaller

svn at pcbsd.org svn at pcbsd.org
Wed Sep 29 09:05:39 PDT 2010


Author: kris
Date: 2010-09-29 09:05:39 -0700 (Wed, 29 Sep 2010)
New Revision: 7657

Modified:
   pcbsd/current/src-qt4/pc-sysinstaller/sys-diskwidget.cpp
Log:

Update installer, require user to make a partition for "Free Space" before doing install, that way
we can make sure the partition creation works before trying to install. 



Modified: pcbsd/current/src-qt4/pc-sysinstaller/sys-diskwidget.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-sysinstaller/sys-diskwidget.cpp	2010-09-29 15:52:51 UTC (rev 7656)
+++ pcbsd/current/src-qt4/pc-sysinstaller/sys-diskwidget.cpp	2010-09-29 16:05:39 UTC (rev 7657)
@@ -144,10 +144,23 @@
         }
       }
     } else if ( listDiskSlices->currentItem() ){
+
       // Using a specific partition, check that size
       QString slice = listDiskSlices->currentItem()->text();
       slice.truncate(slice.indexOf(":"));
 
+
+      // Make sure this isn't Unused Space we are trying to install to
+      for (int i=0; i < sysDisks.count(); ++i) {
+        if ( sysDisks.at(i).at(0) == "SLICE" && slice == sysDisks.at(i).at(2) \
+  	  && sysDisks.at(i).at(4) == "Unused Space") {
+          QMessageBox::critical(this, tr("PC-BSD Installer Error"),
+          tr("Please create a partition using the 'Add Partition' button below, to install using free space."),
+          QMessageBox::Ok);
+          return false;
+	}
+      }
+
       // Get the Disk
       for (int i=0; i < sysDisks.count(); ++i)
         if ( sysDisks.at(i).at(0) == "SLICE" && slice == sysDisks.at(i).at(2))



More information about the Commits mailing list