[PC-BSD Commits] r21626 - pcbsd/current/src-qt4/EasyPBI

svn at pcbsd.org svn at pcbsd.org
Thu Feb 21 07:58:37 PST 2013


Author: kenmoore
Date: 2013-02-21 15:58:37 +0000 (Thu, 21 Feb 2013)
New Revision: 21626

Modified:
   pcbsd/current/src-qt4/EasyPBI/mainGUI.cpp
Log:
Seperate the warning dialogs for the external utilties and the freebsd ports tree so that the missing utility is much easier to see.



Modified: pcbsd/current/src-qt4/EasyPBI/mainGUI.cpp
===================================================================
--- pcbsd/current/src-qt4/EasyPBI/mainGUI.cpp	2013-02-21 10:23:22 UTC (rev 21625)
+++ pcbsd/current/src-qt4/EasyPBI/mainGUI.cpp	2013-02-21 15:58:37 UTC (rev 21626)
@@ -124,10 +124,14 @@
 	exit(1);
     }
     //Pop up a warning box if some external resources are not available
-    bool chkOK = (settings->check("isPortsAvailable") && settings->check("isMakeportAvailable") && settings->check("iscreateAvailable") && settings->check("isSUavailable") );
+    bool chkOK = (settings->check("isMakeportAvailable") && settings->check("iscreateAvailable") && settings->check("isSUavailable") );
     if( !chkOK ){
 	QMessageBox::warning(this, tr("Resources Unavailable"), tr("Some external resources could not be found, so the EasyPBI services that use these resources have been deactivated.")+"\n"+tr("Please open up the EasyPBI preferences to correct this deficiency.") );
     }
+    //Pop up a warning about a missing ports tree
+    if( !settings->check("isPortsAvailable") ){
+	QMessageBox::warning(this, tr("FreeBSD Ports Missing"), tr("The FreeBSD ports tree is missing from your system.")+"\n"+tr("Please open up the appropriate EasyPBI menu option to correct this deficiency.") );
+    }
     //Set a couple more internal flags
     PBI_BUILDING_NOW.clear();
     PBI_BUILD_TERMINATED=FALSE;



More information about the Commits mailing list