changeset 742:edde9cbb2ce4

Corrected filtering of faulty finder command line parameter. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@1019 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Mon, 27 Sep 2010 06:31:23 +0000
parents 0b7602d246e4
children 7b98f7f43b7c
files src/main.cpp
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.cpp	Sun Sep 19 16:36:50 2010 +0000
+++ b/src/main.cpp	Mon Sep 27 06:31:23 2010 +0000
@@ -130,7 +130,7 @@
 		for ( int i = 0; i < argc; i++ ) {
 			QString argString(argv[i]);
 
-			if ( argString.startsWith("-psn_") ) {
+			if ( argString.startsWith("-psn_") == false ) {
 				argList.push_back(argv[i]);
 			}
 			else {
@@ -143,9 +143,9 @@
 		argc = argList.size();
 #endif
 
-	// Wrap everything in a try block. Do this every time, 
-	// because exceptions will be thrown for problems. 
-	try {  
+	// Wrap everything in a try block. Do this every time,
+	// because exceptions will be thrown for problems.
+	try {
 		// Define the command line object.
 		TCLAP::CmdLine cmd("If -p and -s are set, -p will be used.\nGiving no parameters starts full gui without server.", ' ', "UiGUI version " PROGRAM_VERSION_STRING " " PROGRAM_REVISION);
 		cmd.setExceptionHandling(false);
@@ -169,7 +169,7 @@
 		// Parse the args.
 		cmd.parse( argc, argv );
 
-		// Get the value parsed by each arg. 
+		// Get the value parsed by each arg.
 		file2OpenOnStart = QString::fromStdString( filenameArg.getValue() );
 		startAsPlugin = pluginSwitch.getValue();
 		startAsServer = serverSwitch.getValue();