mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user