(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:
parent
e6aea2b29e
commit
928e2105f3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue