]> granicus.if.org Git - transmission/log
transmission
9 years agoOngoing refactoring (use size_t instead of int)
Mike Gelfand [Fri, 25 Dec 2015 10:19:50 +0000 (10:19 +0000)]
Ongoing refactoring (use size_t instead of int)

9 years agoRevert r14501
Mike Gelfand [Thu, 24 Dec 2015 20:52:40 +0000 (20:52 +0000)]
Revert r14501

9 years ago#6039: Fix uninitialized controlView use in InfoTabButtonCell
Mike Gelfand [Tue, 22 Dec 2015 00:45:09 +0000 (00:45 +0000)]
#6039: Fix uninitialized controlView use in InfoTabButtonCell

9 years agoUse default encoding (UTF-8) for all the source files; convert two more .strings...
Mike Gelfand [Mon, 21 Dec 2015 17:03:07 +0000 (17:03 +0000)]
Use default encoding (UTF-8) for all the source files; convert two more .strings files to UTF-8

9 years ago#6038: Fix qmake-based Qt client build
Mike Gelfand [Mon, 21 Dec 2015 13:20:35 +0000 (13:20 +0000)]
#6038: Fix qmake-based Qt client build

9 years agoConvert OS X client .strings files to UTF-8
Mike Gelfand [Mon, 21 Dec 2015 09:26:38 +0000 (09:26 +0000)]
Convert OS X client .strings files to UTF-8

9 years agoRemove duplicate and unused languages from OS X client project
Mike Gelfand [Mon, 21 Dec 2015 08:58:53 +0000 (08:58 +0000)]
Remove duplicate and unused languages from OS X client project

9 years agoUpdate all XIBs to latest format (Xcode 7), set deployment target to OS X 10.7
Mike Gelfand [Mon, 21 Dec 2015 05:11:40 +0000 (05:11 +0000)]
Update all XIBs to latest format (Xcode 7), set deployment target to OS X 10.7

9 years agoMove DBus/COM checks up to where Qt is being searched for
Mike Gelfand [Thu, 17 Dec 2015 18:10:43 +0000 (18:10 +0000)]
Move DBus/COM checks up to where Qt is being searched for

9 years agoAdd ActiveQt-based COM interop helper
Mike Gelfand [Wed, 16 Dec 2015 20:01:03 +0000 (20:01 +0000)]
Add ActiveQt-based COM interop helper

9 years agoOne more little Qt thingy (we don't need to include UseQt4.cmake anymore)
Mike Gelfand [Wed, 16 Dec 2015 19:09:46 +0000 (19:09 +0000)]
One more little Qt thingy (we don't need to include UseQt4.cmake anymore)

9 years agoBump CMake to 2.8.12, rework Qt use a little
Mike Gelfand [Wed, 16 Dec 2015 18:46:06 +0000 (18:46 +0000)]
Bump CMake to 2.8.12, rework Qt use a little

9 years agoRefactor DBus IPC to allow for further extensibility
Mike Gelfand [Wed, 16 Dec 2015 17:57:05 +0000 (17:57 +0000)]
Refactor DBus IPC to allow for further extensibility

9 years agoPrint log messages in one `OutputDebugString()` call (Windows)
Mike Gelfand [Sun, 13 Dec 2015 10:34:53 +0000 (10:34 +0000)]
Print log messages in one `OutputDebugString()` call (Windows)

9 years agoOptionally return result length from `evbuffer_free_to_str()`
Mike Gelfand [Sun, 13 Dec 2015 10:23:22 +0000 (10:23 +0000)]
Optionally return result length from `evbuffer_free_to_str()`

9 years agoReserve a few more bytes for base64 operations to prevent heap corruption
Mike Gelfand [Sun, 13 Dec 2015 01:29:39 +0000 (01:29 +0000)]
Reserve a few more bytes for base64 operations to prevent heap corruption

9 years agoAdd libevent include directories to GTK+ client
Mike Gelfand [Sat, 12 Dec 2015 18:46:39 +0000 (18:46 +0000)]
Add libevent include directories to GTK+ client

9 years agoSync translations with Transifex
Mike Gelfand [Sat, 12 Dec 2015 18:14:15 +0000 (18:14 +0000)]
Sync translations with Transifex

New translations: Italian (Italy) and Korean.

9 years agofix const warnings
Jordan Lee [Sun, 6 Dec 2015 22:39:14 +0000 (22:39 +0000)]
fix const warnings

In particular, in passing argv around as a "const char * const *"
instead of a "const char *".

9 years agofix unused label warning
Jordan Lee [Sun, 6 Dec 2015 22:24:35 +0000 (22:24 +0000)]
fix unused label warning

some #ifdef code had a goto label 'non_sparse_out', so that goto label was
unused on platforms where all those #ifdef blocks were disabled.

9 years agoconst correctness
Jordan Lee [Sun, 6 Dec 2015 22:13:10 +0000 (22:13 +0000)]
const correctness

silence some qual-cast warnings by sprinkling more consts throughout,
e.g. casting a const void* to a const struct foo * const *

9 years ago(trivial) remove trailing enum comma
Jordan Lee [Sun, 6 Dec 2015 21:41:18 +0000 (21:41 +0000)]
(trivial) remove trailing enum comma

9 years agofix -Wfloat-equal warning
Jordan Lee [Sun, 6 Dec 2015 21:07:37 +0000 (21:07 +0000)]
fix -Wfloat-equal warning

When calculating the 'Have' line for transmission-qt's details dialog,
use int64s rather than doubles for sizeWhenDone, leftUntilDone, and
available.

9 years agoin Torrent::setDouble(), don't compare doubles directly as a bool
Jordan Lee [Sun, 6 Dec 2015 18:02:37 +0000 (18:02 +0000)]
in Torrent::setDouble(), don't compare doubles directly as a bool

9 years ago(trivial) silence a few -Wold-style-cast warnings
Jordan Lee [Sun, 6 Dec 2015 17:39:18 +0000 (17:39 +0000)]
(trivial) silence a few -Wold-style-cast warnings

9 years ago(trivial) remove trailing semicolon after Q_DECLARE_METATYPE
Jordan Lee [Sun, 6 Dec 2015 17:28:54 +0000 (17:28 +0000)]
(trivial) remove trailing semicolon after Q_DECLARE_METATYPE

9 years ago(trivial) remove namespace trailing semicolon
Jordan Lee [Sun, 6 Dec 2015 17:27:21 +0000 (17:27 +0000)]
(trivial) remove namespace trailing semicolon

9 years agoremove unused macro
Jordan Lee [Sun, 6 Dec 2015 16:39:38 +0000 (16:39 +0000)]
remove unused macro

9 years agolink transmission-gtk against libappindicator if necessary
Jordan Lee [Sun, 6 Dec 2015 16:12:27 +0000 (16:12 +0000)]
link transmission-gtk against libappindicator if necessary

9 years agolink daemon against systemd libraries if necessary
Jordan Lee [Sun, 6 Dec 2015 14:58:05 +0000 (14:58 +0000)]
link daemon against systemd libraries if necessary

9 years agoImprove Qt client appearance on hidpi screens a bit
Mike Gelfand [Sat, 28 Nov 2015 14:35:58 +0000 (14:35 +0000)]
Improve Qt client appearance on hidpi screens a bit

9 years agoUse correct language pair in version info resource
Mike Gelfand [Thu, 26 Nov 2015 00:18:06 +0000 (00:18 +0000)]
Use correct language pair in version info resource

Standard Windows programs (e.g. Explorer) tolerate this, but some other
programs (e.g. Firefox) are more strict in how they retrieve version
information and may fail if language IDs in StringFileInfo and VarFileInfo
don't match.

9 years ago#6022: Prevent stack overflow when stallness changes for lots of torrents at the...
Mike Gelfand [Wed, 25 Nov 2015 21:53:26 +0000 (21:53 +0000)]
#6022: Prevent stack overflow when stallness changes for lots of torrents at the same time

9 years agoFallback to English if no proper translation is available
Mike Gelfand [Sun, 15 Nov 2015 11:03:27 +0000 (11:03 +0000)]
Fallback to English if no proper translation is available

9 years agoDon't force-add "Show options dialog" checkbox when opening a torrent
Mike Gelfand [Sat, 14 Nov 2015 14:22:57 +0000 (14:22 +0000)]
Don't force-add "Show options dialog" checkbox when opening a torrent

If open file dialog is a native one, setting the layout will do more harm
than good. Specifically, on Windows with Qt 5 the dialog becomes completely
unusable.

9 years agoAdd the rest of current Windows-related third-party patches
Mike Gelfand [Fri, 6 Nov 2015 20:47:52 +0000 (20:47 +0000)]
Add the rest of current Windows-related third-party patches

9 years ago#6017: Remove `-lm` from utils compile flags (but leave in linker flags)
Mike Gelfand [Fri, 6 Nov 2015 15:09:50 +0000 (15:09 +0000)]
#6017: Remove `-lm` from utils compile flags (but leave in linker flags)

9 years agoDon't install Makefile.in files for web UI when using CMake
Mike Gelfand [Thu, 5 Nov 2015 22:48:27 +0000 (22:48 +0000)]
Don't install Makefile.in files for web UI when using CMake

9 years agoUpdate NEWS
Mike Gelfand [Thu, 5 Nov 2015 22:19:45 +0000 (22:19 +0000)]
Update NEWS

9 years ago#5802: Require absolute paths in "session-set" and "free-space" requests as well
Mike Gelfand [Thu, 5 Nov 2015 21:48:00 +0000 (21:48 +0000)]
#5802: Require absolute paths in "session-set" and "free-space" requests as well

9 years agoAdd libcrypto library for Xcode 7 support (complements r14567)
Mike Gelfand [Tue, 3 Nov 2015 19:28:05 +0000 (19:28 +0000)]
Add libcrypto library for Xcode 7 support (complements r14567)

9 years agoUse tr_realloc (BSD reallocf-alike) instead of plain realloc
Mike Gelfand [Sun, 25 Oct 2015 17:13:14 +0000 (17:13 +0000)]
Use tr_realloc (BSD reallocf-alike) instead of plain realloc

9 years agoGH-4: Allow downloading files from http servers (not https)
Mike Gelfand [Sun, 25 Oct 2015 16:48:52 +0000 (16:48 +0000)]
GH-4: Allow downloading files from http servers (not https)

Since iOS 9 and OS X El Capitan Apple is enforcing https connections by
default. Added key allows to download files from http servers too.

9 years agoClear filter upon double clicking on filtered torrent list notice
Mike Gelfand [Sat, 24 Oct 2015 20:56:45 +0000 (20:56 +0000)]
Clear filter upon double clicking on filtered torrent list notice

9 years ago#5777: Trim potential URIs from clipboard on Mac (patch by jeepston, a bit modified)
Mike Gelfand [Fri, 23 Oct 2015 18:53:47 +0000 (18:53 +0000)]
#5777: Trim potential URIs from clipboard on Mac (patch by jeepston, a bit modified)

9 years agoSupport absolute paths longer than ~260 chars on Windows
Mike Gelfand [Fri, 23 Oct 2015 05:29:47 +0000 (05:29 +0000)]
Support absolute paths longer than ~260 chars on Windows

9 years agoUse tr_sys_path_remove instead of remove
Mike Gelfand [Fri, 23 Oct 2015 04:09:40 +0000 (04:09 +0000)]
Use tr_sys_path_remove instead of remove

9 years agoBetter support for UNC paths in tr_sys_path_is_relative
Mike Gelfand [Fri, 23 Oct 2015 03:55:04 +0000 (03:55 +0000)]
Better support for UNC paths in tr_sys_path_is_relative

Accept \\ and // and valid UNC path prefixes, but not \/ or /\.

9 years agoRework Win32 basename and dirname implementation
Mike Gelfand [Fri, 23 Oct 2015 03:42:11 +0000 (03:42 +0000)]
Rework Win32 basename and dirname implementation

Don't use _splitpath_s and _makepath_s as they don't support long paths
and UNC paths properly. Report error if path is not valid.

9 years ago#5802: Don't make assumptions of remote path validity in transmission-remote
Mike Gelfand [Tue, 20 Oct 2015 21:22:19 +0000 (21:22 +0000)]
#5802: Don't make assumptions of remote path validity in transmission-remote

Defer validity checks until path gets to the remote side, where they
actually make sense. Add simple checks for download directory path to
ensure it's not relative, since one cannot know what current working
directory of the remote process is.

9 years agoAlways invoke async RPC callback, even if operation failed to start
Mike Gelfand [Tue, 20 Oct 2015 21:06:01 +0000 (21:06 +0000)]
Always invoke async RPC callback, even if operation failed to start

9 years agoShow notice on top of filtered torrents list
Mike Gelfand [Mon, 19 Oct 2015 20:30:26 +0000 (20:30 +0000)]
Show notice on top of filtered torrents list

This has a couple of benefits: 1) it is clearly visible to the user that
the list is filtered (doesn't display all the torrents) even when filter
bar is hidden, 2) doesn't lead to filter bar controls being shifted to
the left/right as when "Show:" label text changes.

9 years agoRemove unused session tag
Mike Gelfand [Sun, 18 Oct 2015 18:39:14 +0000 (18:39 +0000)]
Remove unused session tag

9 years agoDisplay notifications via tray icon if dbus is not available
Mike Gelfand [Sun, 18 Oct 2015 11:48:10 +0000 (11:48 +0000)]
Display notifications via tray icon if dbus is not available

9 years ago#5889: Sync with libutp before its API changed
Mike Gelfand [Fri, 16 Oct 2015 20:27:52 +0000 (20:27 +0000)]
#5889: Sync with libutp before its API changed

9 years ago#5992: Remove now obsolete check for 13th Baktun (already happened)
Mike Gelfand [Fri, 16 Oct 2015 19:49:07 +0000 (19:49 +0000)]
#5992: Remove now obsolete check for 13th Baktun (already happened)

9 years ago#6006: Don't use newlocale/uselocale with uClibc below 0.9.34
Mike Gelfand [Thu, 15 Oct 2015 20:19:27 +0000 (20:19 +0000)]
#6006: Don't use newlocale/uselocale with uClibc below 0.9.34

Incomplete locale internals initialization in uClibc leads to crash upon
`newlocale` call.

See also: http://git.uclibc.org/uClibc/commit/?id=3902d0c472

9 years ago#6005: Style fix for previous commit (no functional changes)
Mike Gelfand [Wed, 14 Oct 2015 08:22:17 +0000 (08:22 +0000)]
#6005: Style fix for previous commit (no functional changes)

9 years ago#6005: Bump minimum OpenSSL version to 0.9.7, fix build for versions less than 0...
Mike Gelfand [Tue, 13 Oct 2015 21:24:31 +0000 (21:24 +0000)]
#6005: Bump minimum OpenSSL version to 0.9.7, fix build for versions less than 0.9.8b

9 years agoInitialise networking in daemon before making libevent calls
Mike Gelfand [Sun, 11 Oct 2015 16:35:51 +0000 (16:35 +0000)]
Initialise networking in daemon before making libevent calls

9 years agoImprove error handling when formatting error messages on Windows
Mike Gelfand [Sun, 11 Oct 2015 16:15:19 +0000 (16:15 +0000)]
Improve error handling when formatting error messages on Windows

9 years agoFix parameters order in `tr_web_done_func` declaration
Mike Gelfand [Thu, 8 Oct 2015 19:47:59 +0000 (19:47 +0000)]
Fix parameters order in `tr_web_done_func` declaration

9 years ago#5867: Fix miniupnpc strings script re. r14269 (patch by demosdemon)
Mike Gelfand [Thu, 8 Oct 2015 19:12:03 +0000 (19:12 +0000)]
#5867: Fix miniupnpc strings script re. r14269 (patch by demosdemon)

9 years ago#4518: Mark appropriate fields in prefs as html5 number fields (patch by e-moe)
Mike Gelfand [Thu, 8 Oct 2015 18:54:43 +0000 (18:54 +0000)]
#4518: Mark appropriate fields in prefs as html5 number fields (patch by e-moe)

9 years ago#5732: Change length argument type to uint32_t for LTEP messages
Mike Gelfand [Mon, 5 Oct 2015 23:10:52 +0000 (23:10 +0000)]
#5732: Change length argument type to uint32_t for LTEP messages

9 years ago#5732: Fix possible overflow in messageLengthIsCorrect (partial patch by cfpp2p)
Mike Gelfand [Mon, 5 Oct 2015 01:21:47 +0000 (01:21 +0000)]
#5732: Fix possible overflow in messageLengthIsCorrect (partial patch by cfpp2p)

9 years agoSupport compiling Mac client with Xcode 7
Mike Gelfand [Mon, 5 Oct 2015 00:25:13 +0000 (00:25 +0000)]
Support compiling Mac client with Xcode 7

Latest Mac OS X SDK (10.11) doesn't include OpenSSL headers, but still
provides the libraries. Bundle our own copy of OpenSSL headers for now
(taken from running 10.10 system).

9 years ago#5993: Improve magnets handling in main window
Mike Gelfand [Sun, 4 Oct 2015 06:16:59 +0000 (06:16 +0000)]
#5993: Improve magnets handling in main window

Disable "Open Folder" and "Verify Local Data" actions for magnets in
Torrent menu. If more than one torrent is selected, "Verify Local Data"
is enabled but only non-magnets are verified if activated.
Add a few sanity checks when opening folder, just in case.

9 years ago#6003: Update to miniupnpc api 14 (slightly modified patch by infirit)
Mike Gelfand [Sun, 4 Oct 2015 04:53:18 +0000 (04:53 +0000)]
#6003: Update to miniupnpc api 14 (slightly modified patch by infirit)

9 years ago#6001: Calculate header item size properly
Mike Gelfand [Sun, 27 Sep 2015 20:23:03 +0000 (20:23 +0000)]
#6001: Calculate header item size properly

9 years agoSync main context menu with "Torrent" menu; hide menu icons on Mac
Mike Gelfand [Tue, 1 Sep 2015 23:19:01 +0000 (23:19 +0000)]
Sync main context menu with "Torrent" menu; hide menu icons on Mac

9 years agoFix session dialog not showing up after first close
Mike Gelfand [Tue, 1 Sep 2015 20:39:34 +0000 (20:39 +0000)]
Fix session dialog not showing up after first close

9 years agoRemove context help button from dialogs on Windows
Mike Gelfand [Tue, 1 Sep 2015 20:19:26 +0000 (20:19 +0000)]
Remove context help button from dialogs on Windows

We don't currently (if ever) provide context help, so the button is
useless. Moreover, on Windows 10 it's even larger than before and
sometimes title text doesn't fit because of it.

9 years ago#5982: Simplify filter bar connections by using needed slot directly
Mike Gelfand [Mon, 17 Aug 2015 08:14:45 +0000 (08:14 +0000)]
#5982: Simplify filter bar connections by using needed slot directly

9 years agoSimplify and speed up actions connected to file tree popup menu
Mike Gelfand [Sun, 16 Aug 2015 22:07:09 +0000 (22:07 +0000)]
Simplify and speed up actions connected to file tree popup menu

9 years agoSync translations with Transifex
Mike Gelfand [Mon, 10 Aug 2015 20:43:26 +0000 (20:43 +0000)]
Sync translations with Transifex

Add German and Indonesian (translated 95%+).

9 years ago#5608: Enter file renaming mode with keyboard only, not on mouse double-click (Qt...
Mike Gelfand [Mon, 10 Aug 2015 19:40:58 +0000 (19:40 +0000)]
#5608: Enter file renaming mode with keyboard only, not on mouse double-click (Qt client)

Since double-click is usually used to open things, don't use it to enter
edit mode, use platform-specific keyboard shortcut instead (Return, F2,
etc).
Add context menu duplicating available actions, resembling that of Mac
client. This includes new "only check selected" action.
Speed up DND/priority change for large numbers of files at once. Make
DND/priority toggling more natural: if both parent and its child are
selected, only act on parent (with all its children following).

9 years agoRefactor action groups initialization/handling and trackers merging a bit
Mike Gelfand [Thu, 6 Aug 2015 20:28:44 +0000 (20:28 +0000)]
Refactor action groups initialization/handling and trackers merging a bit

9 years agoUse CMake-provided C/C++ standard selection capabilities; fix build (qtr.pro)
Mike Gelfand [Sat, 1 Aug 2015 16:05:02 +0000 (16:05 +0000)]
Use CMake-provided C/C++ standard selection capabilities; fix build (qtr.pro)

9 years agoRemove some unused includes/macros; fix build (re. QPointer)
Mike Gelfand [Thu, 30 Jul 2015 06:55:28 +0000 (06:55 +0000)]
Remove some unused includes/macros; fix build (re. QPointer)

9 years agoCreate dialogs on demand, don't keep them ready all the time
Mike Gelfand [Thu, 30 Jul 2015 06:18:02 +0000 (06:18 +0000)]
Create dialogs on demand, don't keep them ready all the time

9 years agoImprove RPC performance for local sessions
Mike Gelfand [Mon, 13 Jul 2015 00:32:48 +0000 (00:32 +0000)]
Improve RPC performance for local sessions

Don't unnecessarily de-/serialize JSON data if local session is used.

9 years agoImprove file tree population/update performance
Mike Gelfand [Sun, 12 Jul 2015 20:48:54 +0000 (20:48 +0000)]
Improve file tree population/update performance

Use simple tokenization instead of splitting the file path into
QStringList for each item. Don't expand each added item separetely
during population/update. Don't expand all the items but just up to the
point where parent has more than one expandable child.

Also, fix items order by sorting items after population/update. Fix
sorting by size on systems where uint64_t != quint64.

9 years ago#5912: Prevent completed pieces modification by webseeds (patch by cfpp2p)
Mike Gelfand [Sun, 5 Jul 2015 07:54:46 +0000 (07:54 +0000)]
#5912: Prevent completed pieces modification by webseeds (patch by cfpp2p)

This avoids blocks corruption in case webseed provides bad data.

As explained by cfpp2p, "The requirements to reproduce are at least one
webseed that sends corrupt block(s), and at least one other peer (webseed
or regular peer) that sends correct data for the same block. Then a peer
with correct block sends the block and transmission accepts and verifies
that block as good. But then the webseed thread comes around and the same
block is downloaded from the webseed that sends a bad block which is then
written even though the piece was previously deemed complete."

9 years agoFix `tr_net_strerror` on Windows (oops)
Mike Gelfand [Wed, 1 Jul 2015 00:58:00 +0000 (00:58 +0000)]
Fix `tr_net_strerror` on Windows (oops)

9 years agoUse `sockerrno` and `tr_net_strerror` for most of network-related errors
Mike Gelfand [Wed, 1 Jul 2015 00:54:41 +0000 (00:54 +0000)]
Use `sockerrno` and `tr_net_strerror` for most of network-related errors

This ensures proper network errors formatting on Windows.

Also, disable IP_TOS socket option modification attempts on Windows
since it's not supported there and is considered deprecated: "Do not
use. Type of Service (TOS) settings should only be set using the
Quality of Service API" (c) MSDN. Using QoS API is a subject for
separate commit(s).

9 years agoSome look-and-feel improvements for Mac and GTK+ styles (Qt client)
Mike Gelfand [Sun, 28 Jun 2015 14:18:06 +0000 (14:18 +0000)]
Some look-and-feel improvements for Mac and GTK+ styles (Qt client)

9 years agoAvoid assert on passing negative values to `isprint` (due to type promotion)
Mike Gelfand [Fri, 26 Jun 2015 21:22:27 +0000 (21:22 +0000)]
Avoid assert on passing negative values to `isprint` (due to type promotion)

9 years ago#5964: Another follow-up commit for #5456 (encrypted communication with libevent...
Mike Gelfand [Wed, 24 Jun 2015 21:24:41 +0000 (21:24 +0000)]
#5964: Another follow-up commit for #5456 (encrypted communication with libevent 2.1.x)

Decrypt only what is asked for, not more. This fixes previous commit
which changed semantics by processing the buffer to the very end,
starting with correct offset though.

Refactor encryption/decryption to a single function which callback.

9 years ago#5964: Follow-up fix for #5456 (encrypted communication with libevent 2.1.x)
Mike Gelfand [Wed, 24 Jun 2015 20:38:41 +0000 (20:38 +0000)]
#5964: Follow-up fix for #5456 (encrypted communication with libevent 2.1.x)

I've misread libevent documentation and the check introduced was not
entirely correct. Changed `evbuffer_peek` call now to only request the
data which would fit into provided iovec.

9 years agoAvoid possible `_XOPEN_SOURCE` redefinition warning
Mike Gelfand [Tue, 23 Jun 2015 21:16:33 +0000 (21:16 +0000)]
Avoid possible `_XOPEN_SOURCE` redefinition warning

9 years ago#5456: Fix encrypted communication with libevent 2.1.x
Mike Gelfand [Wed, 17 Jun 2015 20:32:33 +0000 (20:32 +0000)]
#5456: Fix encrypted communication with libevent 2.1.x

Recent versions of libevent changed the semantics of `evbuffer_ptr_set`
function in a way that it succeeds if pointer is set right after the end
of the buffer. This caused `tr_cryptoEncrypt` and `tr_cryptoDecrypt` to
be called twice for last buffer chunk since no checks for `evbuffer_peek`
return value were made while it was returning 0 on last loop cycle,
leaving iovec unchanged.

9 years agoTorrent properties dialog improvements
Mike Gelfand [Mon, 15 Jun 2015 21:07:46 +0000 (21:07 +0000)]
Torrent properties dialog improvements

Simplify DND checkboxes drawing, this also fixes incorrect drawing on
Mac when file tree widget is inactive.
Do better job calculating column widths for file tree to avoid ellipsis.
Fix file tree sorting order for size and priority columns.
Change key to toggle priorities to Shift+Space instead of Enter/Return
to avoid conflicts with name editing and default button handling.
Fix selected tracker item background drawing in certain cases.

9 years agoInstead of standard C headers include their C++ counterparts
Mike Gelfand [Fri, 12 Jun 2015 22:41:36 +0000 (22:41 +0000)]
Instead of standard C headers include their C++ counterparts

9 years agoUnify/prettify Qt client headers style
Mike Gelfand [Fri, 12 Jun 2015 22:12:12 +0000 (22:12 +0000)]
Unify/prettify Qt client headers style

9 years agoSync Qt client translations, add Polish language
Mike Gelfand [Wed, 10 Jun 2015 22:51:53 +0000 (22:51 +0000)]
Sync Qt client translations, add Polish language

9 years agoUse PascalCase for Qt client filenames
Mike Gelfand [Wed, 10 Jun 2015 21:27:11 +0000 (21:27 +0000)]
Use PascalCase for Qt client filenames

Split FileTree.{h,cc} and FilterBar.{h,cc} files so that each class
is in its own file.

This breaks translations (some classes got renamed => context changed),
to be fixed by next commit (along with Tx sync).

9 years agoBump DHT version used in CMake scripts (includes latest Win32 fixes)
Mike Gelfand [Mon, 8 Jun 2015 19:54:51 +0000 (19:54 +0000)]
Bump DHT version used in CMake scripts (includes latest Win32 fixes)

9 years agoDon't print trailing space char on each line when saving JSON
Mike Gelfand [Mon, 1 Jun 2015 20:50:25 +0000 (20:50 +0000)]
Don't print trailing space char on each line when saving JSON

9 years ago#5851: Don't use _configthreadlocale if not provided by CRT (even if declaration...
Mike Gelfand [Mon, 1 Jun 2015 18:52:14 +0000 (18:52 +0000)]
#5851: Don't use _configthreadlocale if not provided by CRT (even if declaration is present)