Opened 13 years ago

Closed 13 years ago

#3265 closed Bug (fixed)

-v --version command line option doesn't quit transmission

Reported by: Longinus00 Owned by: Longinus00
Priority: Normal Milestone: 2.00
Component: Qt Client Version: 1.93
Severity: Normal Keywords:
Cc:

Description (last modified by charles)

Fixed in trunk for 2.00 by r10731.

Attachments (1)

qt_fixVersion.patch (937 bytes) - added by Longinus00 13 years ago.

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by Longinus00

comment:1 Changed 13 years ago by Longinus00

  • Owner changed from charles to Longinus00

comment:2 Changed 13 years ago by rb07

Actually option -v is repeated twice:

$ ./qtr -h
Usage:
  transmission [OPTIONS...] [torrent files]

Options:
  -h --help                   Display this help page and exit
  -g --config-dir <path>      Where to look for configuration files
  -m --minimized              Start minimized in system tray
  -p --port       <port>      Port to use when connecting to an existing session
  -r --remote     <host>      Connect to an existing session at the specified hostname
  -v --username   <username>  Username to use when connecting to an existing session
  -v --version                Show version number and exit
  -w --password   <password>  Password to use when connecting to an existing session

My guess is that -V or --version was the intended use, but never implemented.

comment:3 Changed 13 years ago by charles

  • Milestone changed from 2.10 to 2.00

d'oh, looks like we're picking up some Qt exit function when exit() is called in the trunk version. replacing exit(0) with ::exit(0) works.

The fix looks safe enough to me... I don't see any reason to wait until 2.10 for this ticket.

comment:4 Changed 13 years ago by charles

  • Description modified (diff)
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.