From 928e2105f3f2fb5fad6d72aa91a59aed808302da Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 5 Jun 2010 10:59:24 +0000 Subject: [PATCH] (trunk qt) #3265 "-v --version command line doesn't quit transmission" -- call ::exit(0) instead of exit(0). d'oh! --- qt/app.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/app.cc b/qt/app.cc index d0385fcfe..8ef9952a9 100644 --- a/qt/app.cc +++ b/qt/app.cc @@ -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; }