(trunk qt) #3265 "-v --version command line doesn't quit transmission" -- call ::exit(0) instead of exit(0). d'oh!

This commit is contained in:
Charles Kerr 2010-06-05 10:59:24 +00:00
parent e6aea2b29e
commit 928e2105f3
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ MyApp :: MyApp( int& argc, char ** argv ):
case 'u': username = optarg; break;
case 'w': password = optarg; break;
case 'm': minimized = true; break;
case 'v': Utils::toStderr( QObject::tr( "transmission %1" ).arg( LONG_VERSION_STRING ) ); exit( 0 ); break;
case 'v': Utils::toStderr( QObject::tr( "transmission %1" ).arg( LONG_VERSION_STRING ) ); ::exit( 0 ); break;
case TR_OPT_ERR: Utils::toStderr( QObject::tr( "Invalid option" ) ); showUsage( ); break;
default: filenames.append( optarg ); break;
}