[PC-BSD Commits] r864 - pcbsd/trunk/PBItext

svn at pcbsd.org svn at pcbsd.org
Fri Nov 9 07:06:49 PST 2007


Author: kris
Date: 2007-11-09 07:06:49 -0800 (Fri, 09 Nov 2007)
New Revision: 864

Modified:
   pcbsd/trunk/PBItext/main.cpp
Log:

Add support for the -accept flag in pbitext program



Modified: pcbsd/trunk/PBItext/main.cpp
===================================================================
--- pcbsd/trunk/PBItext/main.cpp	2007-11-09 15:02:32 UTC (rev 863)
+++ pcbsd/trunk/PBItext/main.cpp	2007-11-09 15:06:49 UTC (rev 864)
@@ -53,6 +53,7 @@
 QString ExeTaskbar[100];
 QString ProgUpdateURL;
 int GTKFound = 0;
+int acceptlic = 0;
 
 
 int main( int argc, char ** argv )
@@ -67,7 +68,17 @@
        return 1;
     }
 
+     // Check if the -accept flag has been specified
+     if ( argc == 2)
+     {
+       QString tmp = argv[1];
+       if ( tmp == "-accept" ) {
+          acceptlic = 1;
+       }
+     }
 
+
+
     ProgramInit(a.applicationDirPath());
 
     return 0;
@@ -328,7 +339,7 @@
 
      // Get the LICENSE file loaded
     QFile LicFile( "LICENSE" );
-    if ( LicFile.exists() )
+    if ( LicFile.exists() && acceptlic == 0 )
     {
        acceptLicense();
        



More information about the Commits mailing list