1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00
Commit graph

532 commits

Author SHA1 Message Date
Mike Gelfand
fed15dc29d Fix a couple of ordinary and pedantic warnings
Add previously missing -Wall to warning flags in CMake. Remove -Wformat
and -Wvariadic-macros (enabled by default; latter is not meaningful in
C99 mode we use), -Wdeclaration-after-statement (again, not needed as
we use C99). Move -Wmissing-declarations to C-only flags (GCC man says
so).

Add copyrights year to crypto-utils-fallback.c.
2014-12-11 05:11:02 +00:00
Mike Gelfand
5c43b5c23c #4400, #5462: Move BASE64 helpers to crypto-utils
On a way to factoring out OpenSSL support to a standalone file to ease
addition of other crypto libraries support in the future, move helpers
providing BASE64 encoding and decoding to crypto-utils.{c,h}. OpenSSL-
related functionality is moved to crypto-utils-openssl.c.

Add new functions to be implemented by crypto backends:
* tr_base64_encode_impl - encode from binary to BASE64,
* tr_base64_decode_impl - decode from BASE64 to binary.

Change `tr_base64_encode` and `tr_base64_decode` functions to expect
non-negative input data length which is considered real and never adjusted.
To process null-terminated strings (which was achieved before by passing 0
or -1 as input data length), add new `tr_base64_encode_str` and
`tr_base64_decode_str` functions which do not accept input data length as
an argument but calculate it on their own.
2014-12-04 19:58:34 +00:00
Mike Gelfand
b4a662ba37 Create QDBusConnection after QApplication has been initialized
Doing otherwise causes Qt warning "QDBusConnection: session D-Bus
connection created before QCoreApplication. Application may misbehave."
Also, don't try to do anything D-Bus-related if connection fails.
2014-12-01 21:05:44 +00:00
Mike Gelfand
3e43a308af Sync Qt translation files with current source code 2014-12-01 20:29:03 +00:00
Mike Gelfand
83c4edb008 #5828: Initial CMake build system support 2014-12-01 19:55:22 +00:00
Mike Gelfand
17769e2e2a #5077: Remove torrent file from watch directory even if "show options dialog" is not set (patch from rb07 + some improvements)
Refactor Session::addTorrent (add new method) to eliminate duplicate
code in options.cc and ensure that FileAdded object is being created
on torrent addition even with non-interactive workflow.
Move FileAdded class from options.{h,cc} to session.{h,cc}.
2014-12-01 19:24:07 +00:00
Mike Gelfand
10e59dbc90 #5800: Add Ukrainian translation to Qt client (patch by olexn) 2014-11-30 18:43:50 +00:00
Mike Gelfand
d6c32595a6 #5827: Improve torrent files tree updating performance
Do not unnecessarily emit dataChanged signals for items which didn't change.
Cache file item indices to speedup lookup.
As a bonus, this also fixes wrong file progress display in rare cases.
2014-11-30 18:12:28 +00:00
Jordan Lee
870041d92d (trunk) #4160: mike.dld patch: 4160-08-args.patch 2014-09-21 18:06:28 +00:00
Jordan Lee
728957c46a (trunk, qt) #5774 'Alternative Speed Limits Scheduled Times broken in transmission-qt' -- fixed, plus more gratuitous c++11isms 2014-08-26 23:26:00 +00:00
Mitchell Livingston
0e01879974 Use built-in _WIN32 macro instead of WIN32 2014-07-04 00:00:07 +00:00
Jordan Lee
d0695b7006 (trunk, qt) #5723: 'Simplify file tree icons drawing' -- patch by mike.dld 2014-07-03 23:12:50 +00:00
Jordan Lee
4f29ab1476 remove tracer cerr that was accidentally committed in r14272 2014-05-18 19:47:02 +00:00
Jordan Lee
c56c952e23 update network error detection as described by rb07 in https://trac.transmissionbt.com/ticket/5514#comment:9 2014-05-15 21:32:04 +00:00
Jordan Lee
cd7e5291db silence warnings found by clang++ 2014-05-09 02:32:28 +00:00
Jordan Lee
2be080f48e (trunk qt) #5514 'enhanced network status' -- reset the torrent model when we reconnect to the transmission session after a network failure 2014-04-27 00:33:19 +00:00
Jordan Lee
4fd7408d4b update fr translation by gostron 2014-04-27 00:04:13 +00:00
Jordan Lee
8b0a7746bb fix crash when creating the Open Torrent dialog in Qt 5.2 on Ubuntu 14.04 2014-03-16 22:50:39 +00:00
Jordan Lee
d7368a58f5 Copyedit the license's revised text: (1) fix accidental word concatenations in the Qt and GTK+ clients' license popup text 2014-01-21 03:15:33 +00:00
Jordan Lee
02cff80c2d Copyedit the license's revised text: (1) remove unnecessary repitition use of the word 'license' from the top of the header and source files (2) add the standard 'we hope it's useful, but no warranty' clause to COPYING (3) make explicit that linking OpenSSL is allowed (see https://people.gnome.org/~markmc/openssl-and-the-gpl.html for background) (4) sync the Qt and GTK+ clients' license popups with COPYING's revised text 2014-01-21 03:10:30 +00:00
Jordan Lee
5f2daaafb3 (trunk, gtk/qt/web) #5581: 'Inconsistent ordering of Upload and Download speed limits' -- fixed. 2014-01-20 23:56:06 +00:00
Jordan Lee
15d11de5f4 add svn:keywords on source files that were missing them 2014-01-19 01:29:38 +00:00
Jordan Lee
4b9626bb83 Licensing changes:
1. add the option the code to be used under GPLv2 or GPLv3; previously only GPLv2 was allowed

2. add the "proxy option" as described in GPLv3 so we can add future licenses without having to bulk-edit everything again :)

3. remove the awkward "exception for MIT code in Mac client" clause; it was unnecessary and confusing.
2014-01-19 01:09:44 +00:00
Jordan Lee
4904b923fb (trunk) restore copyright year as suggested in email by rms 2014-01-18 20:56:57 +00:00
Jordan Lee
632edad03d (trunk, qt) #5514 'enhanced network status in transmission-qt' -- patch by rb07 2013-10-20 19:57:48 +00:00
Jordan Lee
6593a47493 (trunk, qt) #5487 'Qt client crash when using Open URL action' -- fixed. 2013-09-14 22:50:25 +00:00
Jordan Lee
da317c441d copyediting: indentation cleanups 2013-09-14 22:45:04 +00:00
Jordan Lee
e0acd2dcc3 (trunk, qt) reuse make-dialog's trailing slash fix in the options dialog when setting the download dir 2013-09-08 19:59:47 +00:00
Jordan Lee
0ed8f46e07 (trunk, qt) #3606 'Qt client New Torrent from Source Folder is Goofy' -- fixed, mikedld 2013-09-08 19:12:33 +00:00
Jordan Lee
e45c4d19d9 (trunk, qt) #5312 'download checkbox toggle with spacebar is broken' -- fixed, patch by mikedld 2013-09-08 19:07:31 +00:00
Jordan Lee
2855e83e45 (trunk, qt) #4813: allow launching files in Qt interface 2013-09-08 19:03:25 +00:00
Jordan Lee
9ef851e790 (trunk, qt) #5483: use native windows icons, more win portability goodness from mikedld 2013-09-08 18:53:11 +00:00
Jordan Lee
e0e98cbed5 fix CL warnings in the Qt code. mikedld 2013-09-08 18:39:37 +00:00
Jordan Lee
47c350c7a0 revert error r14185 error 2013-08-30 18:01:51 +00:00
Jordan Lee
3cf26eb273 revert quint64/quint32/qint64/qint32 use to inttypes to match libtransmission's API 2013-08-29 00:37:37 +00:00
Jordan Lee
c3d6b2d0bd add a size hint for the torrent properties dialog. (rb07) 2013-08-24 20:34:43 +00:00
Jordan Lee
7cc97b795f remove another spurious console message 2013-08-24 20:22:38 +00:00
Jordan Lee
d1a5864949 remove spurious console message 2013-08-24 20:05:24 +00:00
Jordan Lee
f3d35b0da3 instead of inttypes, use Qt integral types -- eg, s/uint64_t/quint64/ 2013-08-24 19:42:51 +00:00
Jordan Lee
e0cb88af45 no need for a semicolon after the closing brace in a C++ 'extern' block 2013-08-24 19:26:21 +00:00
Jordan Lee
ec82d81598 handle tray icon doubleclicks. (rb07) 2013-08-24 19:22:41 +00:00
Jordan Lee
8c76f40b49 when adding by filename, take local file separators into account 2013-08-24 19:19:45 +00:00
Jordan Lee
28fe36f1f8 #include limits.h where we use it, and don't where we don't 2013-08-24 17:53:45 +00:00
Jordan Lee
d89e859535 (trunk, qt) #4937: updated transmission_eu.ts by Xabier Aramendi 2013-08-17 16:27:50 +00:00
Jordan Lee
59abf35807 (trunk, qt) #5465: restore Qt 4.6 support, patch by mike.did 2013-08-17 16:22:56 +00:00
Jordan Lee
1c79173459 support qt5 in transmission-qt 2013-07-27 21:58:14 +00:00
Jordan Lee
94fd3b486b (trunk) slightly better image compression by passing them through pngwolf 2013-07-14 23:03:31 +00:00
Jordan Lee
59f27cc1c6 remove the ShowOnlyIn=Unity desktop entries. These were from bug #4804 as an interim measure until XDG action groups were more widely supported, and can be removed. 2013-07-02 21:20:33 +00:00
Jordan Lee
a95b6c1e6c (trunk) #5382: better compression of our bundled png files. recompressed by Mangix 2013-06-26 02:06:43 +00:00
Jordan Lee
df0d7f7f43 (trunk, qt) #5374: add url support for dragging-and-dropping multiple URLs into transmission-qt. patch by rb07 2013-06-26 01:48:47 +00:00