Changeset 3637

Show
Ignore:
Timestamp:
03/20/09 07:20:28 (12 months ago)
Author:
kris
Message:

Updated PCInstall to perform a few checks on partition size / and when editing "/" with a custom label

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/trunk/PCInstall/pcinstall.cpp

    r3598 r3637  
    927927      
    928928 
    929     if ( PartMB < 4000 ) 
     929    if ( PartMB < 10000 ) 
    930930   { 
    931         textPartInfo->setText(tr("Error: PC-BSD needs a partition with at least 4GB of space.")); 
     931        textPartInfo->setText(tr("Error: PC-BSD needs a partition with at least 10GB of space.")); 
    932932        setNextEnabled(currentPage(), FALSE); 
    933933        return; 
     
    19521952void PCInstall::EditLabelSlot( QString &Blocks ) 
    19531953{ 
     1954    // Check if we are trying to resize / to less than 10GB 
     1955    if ( listViewSlices->currentItem()->text(1) == "/" && Blocks < 10000 ) 
     1956    { 
     1957        QMessageBox::information( this, tr("DiskLabel Error:"), tr("The '/' partition must be a minimum of 10GB.") ); 
     1958        return; 
     1959    } 
    19541960    SliceMB[CurrentEditLabel] = Blocks; 
    19551961    populateSlices();