]> granicus.if.org Git - transmission/log
transmission
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)

9 years ago#5851: Use per-thread locale setup if possible
Mike Gelfand [Mon, 1 Jun 2015 05:25:14 +0000 (05:25 +0000)]
#5851: Use per-thread locale setup if possible

This prevents crashes on concurrent tr_variantFromBuf, tr_variantToBuf
and tr_variantGetReal use.

9 years agoAdd more booleans to the picture
Mike Gelfand [Sun, 31 May 2015 22:13:31 +0000 (22:13 +0000)]
Add more booleans to the picture

9 years agoRemove useless ws2tcpip.h include in net.h
Mike Gelfand [Sat, 30 May 2015 15:44:17 +0000 (15:44 +0000)]
Remove useless ws2tcpip.h include in net.h

It's already included above, and QT_DLL condition is meaningless
since net.h is only being used inside libtransmission which doesn't
use Qt.

9 years agoUse CreateProcess instead of _spawnvpe to execute scripts on Windows
Mike Gelfand [Sat, 30 May 2015 11:15:57 +0000 (11:15 +0000)]
Use CreateProcess instead of _spawnvpe to execute scripts on Windows

9 years ago#4882: \u-encode all non-printable (as opposed to non-ascii) characters
Mike Gelfand [Sat, 16 May 2015 17:33:01 +0000 (17:33 +0000)]
#4882: \u-encode all non-printable (as opposed to non-ascii) characters

9 years agoFix some issues revealed by coverity
Mike Gelfand [Sat, 9 May 2015 14:10:55 +0000 (14:10 +0000)]
Fix some issues revealed by coverity

9 years agoFix some issues revealed by coverity
Mike Gelfand [Sat, 9 May 2015 14:09:05 +0000 (14:09 +0000)]
Fix some issues revealed by coverity

9 years agoFix some issues revealed by coverity
Mike Gelfand [Sat, 9 May 2015 11:56:35 +0000 (11:56 +0000)]
Fix some issues revealed by coverity

9 years agoFix some issues revealed by coverity
Mike Gelfand [Sat, 9 May 2015 08:37:55 +0000 (08:37 +0000)]
Fix some issues revealed by coverity

9 years ago#5946: Save "prefetch-enabled" setting as boolean (spotted by cfpp2p)
Mike Gelfand [Thu, 7 May 2015 06:45:35 +0000 (06:45 +0000)]
#5946: Save "prefetch-enabled" setting as boolean (spotted by cfpp2p)

9 years ago#5944: Unify indentation style and strip trailing whitespaces across JS code, no...
Mike Gelfand [Tue, 5 May 2015 19:12:48 +0000 (19:12 +0000)]
#5944: Unify indentation style and strip trailing whitespaces across JS code, no functional changes (patch by xzcvczx + a lot more)

9 years agoCut internal macro names to have equal number of underscores on each side (take two)
Mike Gelfand [Mon, 4 May 2015 20:06:05 +0000 (20:06 +0000)]
Cut internal macro names to have equal number of underscores on each side (take two)

9 years agoCut internal macro names to have equal number of underscores on each side
Mike Gelfand [Mon, 4 May 2015 19:58:34 +0000 (19:58 +0000)]
Cut internal macro names to have equal number of underscores on each side

9 years agoRemove `-Wdeclaration-after-statement` flag (we use C99)
Mike Gelfand [Sun, 3 May 2015 11:44:18 +0000 (11:44 +0000)]
Remove `-Wdeclaration-after-statement` flag (we use C99)

9 years ago#5930: Fix style of Gtk+3.16 overshoot and undershoot (patch by nagisa)
Mike Gelfand [Sun, 3 May 2015 10:30:35 +0000 (10:30 +0000)]
#5930: Fix style of Gtk+3.16 overshoot and undershoot (patch by nagisa)

9 years ago#4866: Replace existing menus with jQueryUI menu
Mike Gelfand [Thu, 30 Apr 2015 05:20:48 +0000 (05:20 +0000)]
#4866: Replace existing menus with jQueryUI menu

9 years ago#5937: Don't send TR_RPC_TORRENT_ADDED notification if torrent wasn't actually added...
Mike Gelfand [Wed, 29 Apr 2015 19:42:05 +0000 (19:42 +0000)]
#5937: Don't send TR_RPC_TORRENT_ADDED notification if torrent wasn't actually added (patch by xzcvczx)

9 years agoUse jQuery UI's `ui-helper-hidden` CSS class instead of our own
Mike Gelfand [Sun, 26 Apr 2015 03:35:44 +0000 (03:35 +0000)]
Use jQuery UI's `ui-helper-hidden` CSS class instead of our own

9 years ago#5934: Generate REVISION file and use it in case of missing reliable source
Mike Gelfand [Fri, 24 Apr 2015 19:14:56 +0000 (19:14 +0000)]
#5934: Generate REVISION file and use it in case of missing reliable source

9 years agoBump natpmp revision to include latest Win32 fixes
Mike Gelfand [Thu, 23 Apr 2015 22:03:29 +0000 (22:03 +0000)]
Bump natpmp revision to include latest Win32 fixes

9 years agoDefine WIN32_LEAN_AND_MEAN and NOMINMAX for our own code only
Mike Gelfand [Thu, 23 Apr 2015 21:32:00 +0000 (21:32 +0000)]
Define WIN32_LEAN_AND_MEAN and NOMINMAX for our own code only

9 years agoEmit warning from uTP config in a more friendly way
Mike Gelfand [Thu, 23 Apr 2015 20:20:21 +0000 (20:20 +0000)]
Emit warning from uTP config in a more friendly way

9 years ago#5894: Get rid of eval() in JS code (patch by Ancient; 2nd part)
Mike Gelfand [Thu, 23 Apr 2015 19:30:40 +0000 (19:30 +0000)]
#5894: Get rid of eval() in JS code (patch by Ancient; 2nd part)

9 years ago#5894: Get rid of inline styles in HTML (patch by Ancient; 1st part, slightly modifie...
Mike Gelfand [Thu, 23 Apr 2015 19:02:38 +0000 (19:02 +0000)]
#5894: Get rid of inline styles in HTML (patch by Ancient; 1st part, slightly modified per IRC discussion)

9 years agoEven better (and unified) torrent origin logic for GTK+, Qt and web clients
Mike Gelfand [Wed, 22 Apr 2015 21:04:49 +0000 (21:04 +0000)]
Even better (and unified) torrent origin logic for GTK+, Qt and web clients

9 years agoFix JS error on undefined creator during inspector update
Mike Gelfand [Wed, 22 Apr 2015 20:36:28 +0000 (20:36 +0000)]
Fix JS error on undefined creator during inspector update

Since torrents' info is fetched asynchronously, it may not yet be
available when inspector updates. Account for possibly undefined
creator.

Refine logic used to construct torrent origin phrase to prevent
results such as "Created by  on <date>" or "Created by <creator>
on ".

9 years ago#5894: Fix autotools build ("trailing backslash on last line")
Mike Gelfand [Tue, 21 Apr 2015 21:23:15 +0000 (21:23 +0000)]
#5894: Fix autotools build ("trailing backslash on last line")

9 years ago#5894: Update jQuery to 1.11.2 (with Migrate plugin 1.2.1), jQuery UI to 1.11.4
Mike Gelfand [Tue, 21 Apr 2015 21:17:45 +0000 (21:17 +0000)]
#5894: Update jQuery to 1.11.2 (with Migrate plugin 1.2.1), jQuery UI to 1.11.4

9 years agoBump miniupnpc revision to fix `MINIUPNP_STATICLIB` macro definition
Mike Gelfand [Tue, 21 Apr 2015 13:56:17 +0000 (13:56 +0000)]
Bump miniupnpc revision to fix `MINIUPNP_STATICLIB` macro definition

9 years agoAvoid GCC `'static' is not at beginning of declaration` warning
Mike Gelfand [Tue, 21 Apr 2015 11:40:15 +0000 (11:40 +0000)]
Avoid GCC `'static' is not at beginning of declaration` warning

9 years agoUse UTF-8 for console I/O on Windows
Mike Gelfand [Tue, 21 Apr 2015 10:07:57 +0000 (10:07 +0000)]
Use UTF-8 for console I/O on Windows

9 years agoIfdef the code which does manual relayout on compact view toggle to Qt < 5.4 (QTBUG...
Mike Gelfand [Mon, 20 Apr 2015 09:28:26 +0000 (09:28 +0000)]
Ifdef the code which does manual relayout on compact view toggle to Qt < 5.4 (QTBUG-33537)

9 years agoSend dummy events each second to prevent excessive memory use (inspired by xnyhps)
Mike Gelfand [Sat, 18 Apr 2015 21:45:37 +0000 (21:45 +0000)]
Send dummy events each second to prevent excessive memory use (inspired by xnyhps)

I'm not that good in Mac programming it seems as I can't figure out why
doesn't the memory being allocated by frequent NSNewBitmapBackingStore
(system internal) calls being freed even if I wrap the code into
@autoreleasepool explicitly. Disabling animations does slow it down but
not stop. This commit is certainly a dirty fix but it seems to work in
my case and I hope it helps a few other people while we wait for a
proper solution.

9 years agoFix Qt 4 build: `QGridLayout::getItemPosition ()` is not constant :(
Mike Gelfand [Sat, 18 Apr 2015 14:48:23 +0000 (14:48 +0000)]
Fix Qt 4 build: `QGridLayout::getItemPosition ()` is not constant :(

9 years agoUse C++11 range-based `for` loops (Qt client)
Mike Gelfand [Sat, 18 Apr 2015 14:41:06 +0000 (14:41 +0000)]
Use C++11 range-based `for` loops (Qt client)

9 years ago#5927: Add Chinese (zh_CN) translation to Qt client (provided by liaodahao)
Mike Gelfand [Wed, 15 Apr 2015 20:26:38 +0000 (20:26 +0000)]
#5927: Add Chinese (zh_CN) translation to Qt client (provided by liaodahao)

9 years agoUse native separators for path button and free space label tooltips. Improve path...
Mike Gelfand [Wed, 15 Apr 2015 00:08:24 +0000 (00:08 +0000)]
Use native separators for path button and free space label tooltips. Improve path button dialog initial directory/file selection.

9 years agoAdd version info to executables (on Windows). Group projects into folders (CMake).
Mike Gelfand [Tue, 14 Apr 2015 22:46:40 +0000 (22:46 +0000)]
Add version info to executables (on Windows). Group projects into folders (CMake).

9 years agoAllow files (and their parent directories) to be renamed even when in use (on Windows).
Mike Gelfand [Mon, 13 Apr 2015 18:31:32 +0000 (18:31 +0000)]
Allow files (and their parent directories) to be renamed even when in use (on Windows).

9 years ago#5925 no CFBundleVersion in Jenkins builds
Eric Petit [Sun, 12 Apr 2015 05:08:46 +0000 (05:08 +0000)]
#5925 no CFBundleVersion in Jenkins builds
Work around version mismatch between java's and command-line's svns

9 years agoForward-declare `tr_error` structure in headers
Mike Gelfand [Sat, 11 Apr 2015 14:54:01 +0000 (14:54 +0000)]
Forward-declare `tr_error` structure in headers

9 years agoAdd ERROR_DIRECTORY_NOT_SUPPORTED define missing in MinGW
Mike Gelfand [Sat, 11 Apr 2015 10:58:08 +0000 (10:58 +0000)]
Add ERROR_DIRECTORY_NOT_SUPPORTED define missing in MinGW

9 years ago#5908: Check for `tr_loadFile` return value instead of `errno` in `tr_variantFromFile`
Mike Gelfand [Sat, 11 Apr 2015 10:51:59 +0000 (10:51 +0000)]
#5908: Check for `tr_loadFile` return value instead of `errno` in `tr_variantFromFile`

Seems like there could be a defect in uClibc making errno not
thread-local. Don't rely on errno value but check function return value
instead which is a better failure indicator.

Return errors from `tr_loadFile` and `tr_variantFromFile` via tr_error.
Fix `tr_sessionLoadSettings` to not fail on Windows if settings.json
does not exist.

9 years agoTune directory paths on Windows
Mike Gelfand [Fri, 10 Apr 2015 22:15:41 +0000 (22:15 +0000)]
Tune directory paths on Windows

Use %USERPROFILE% instead of %USERPROFILE%\Documents as home directory.
Don't roam configuration directory (I don't think we want that).
Use known Downloads folder (instead of %HOME%\Downloads) if set.
When searching for web interface files, let local user application data
directory override roaming one, and roaming one override common one.
Use Vista+ API (SHGetKnownFolderPath) to get known folder paths.

9 years ago#5878: Fix typo in transmission-remote -P argument desription (reported by jolan)
Mike Gelfand [Sun, 5 Apr 2015 16:29:09 +0000 (16:29 +0000)]
#5878: Fix typo in transmission-remote -P argument desription (reported by jolan)

9 years ago#5920: Fix memory leak and access to freed memory in tr_getDefaultConfigDir (patch...
Mike Gelfand [Sun, 5 Apr 2015 06:39:06 +0000 (06:39 +0000)]
#5920: Fix memory leak and access to freed memory in tr_getDefaultConfigDir (patch by jyelloz)

9 years ago#5910: Fix autotools build (#2) and workaround MSVC bug
Mike Gelfand [Sat, 4 Apr 2015 18:28:13 +0000 (18:28 +0000)]
#5910: Fix autotools build (#2) and workaround MSVC bug

9 years ago#5910: Fix autotools and Xcode build
Mike Gelfand [Sat, 4 Apr 2015 18:21:34 +0000 (18:21 +0000)]
#5910: Fix autotools and Xcode build

9 years ago#5910: Run daemon as a service on Windows
Mike Gelfand [Sat, 4 Apr 2015 17:43:56 +0000 (17:43 +0000)]
#5910: Run daemon as a service on Windows

Factor out demonization implementation to platform-specific files.
Implement daemonization on Windows using service API. Improve *NIX
implementation by handling signals asynchronously to prevent potential
issues of running complex code inside the handler.

9 years agoAdd patch from #5002 (r13646) to fix crash in libutp for CMake-based builds
Mike Gelfand [Sun, 29 Mar 2015 20:48:06 +0000 (20:48 +0000)]
Add patch from #5002 (r13646) to fix crash in libutp for CMake-based builds

9 years ago#5407: Fix crash on Mac when pausing torrents (patch by x190)
Mike Gelfand [Thu, 26 Mar 2015 18:32:33 +0000 (18:32 +0000)]
#5407: Fix crash on Mac when pausing torrents (patch by x190)

9 years agoDo not return `-EINVAL` as socket value (obviously not a good idea).
Mike Gelfand [Thu, 26 Mar 2015 18:29:11 +0000 (18:29 +0000)]
Do not return `-EINVAL` as socket value (obviously not a good idea).

Also, fix socket descriptor leak in `tr_netBindTCPImpl` if `IPV6_V6ONLY` is defined.

9 years agoFix a couple more MinGW/MSVC warnings.
Mike Gelfand [Thu, 19 Mar 2015 19:13:23 +0000 (19:13 +0000)]
Fix a couple more MinGW/MSVC warnings.

9 years agoFix a couple of MinGW warnings.
Mike Gelfand [Thu, 19 Mar 2015 06:08:06 +0000 (06:08 +0000)]
Fix a couple of MinGW warnings.

9 years agoDefine and use tr_socket_t and TR_BAD_SOCKET instead of int and -1.
Mike Gelfand [Wed, 18 Mar 2015 07:34:26 +0000 (07:34 +0000)]
Define and use tr_socket_t and TR_BAD_SOCKET instead of int and -1.

Test socket validity by comparing to TR_BAD_SOCKET instead of various
(and sometimes wrong) other tests like `x >= 0`, `x != -1`, `x > 0`,
`x > -1`, `x` (valid), and `x < 0`, `x == -1` (invalid).

9 years agoAdd support for WolfSSL (autoconf)
Mike Gelfand [Sun, 15 Mar 2015 17:08:10 +0000 (17:08 +0000)]
Add support for WolfSSL (autoconf)

9 years agoAdd support for WolfSSL
Mike Gelfand [Sun, 15 Mar 2015 16:57:30 +0000 (16:57 +0000)]
Add support for WolfSSL

It was announced on March 5th that CyaSSL changes name to WolfSSL,
and version 3.4.0 has been released under that new name. Tune
FindCyaSSL.cmake a bit to probe for both libraries. Fortunately,
compatibility headers are provided so I didn't have to touch the
code at all for now.

9 years agoMinor type adjustments (incomplete, it takes way too much time)
Mike Gelfand [Sun, 15 Mar 2015 11:43:32 +0000 (11:43 +0000)]
Minor type adjustments (incomplete, it takes way too much time)

9 years agoSet patch svn:eol-style to native (fix Windows build)
Mike Gelfand [Sat, 14 Mar 2015 07:02:46 +0000 (07:02 +0000)]
Set patch svn:eol-style to native (fix Windows build)

9 years agoFix libb64 unsigned char issues while waiting for upstream to accept the patch
Mike Gelfand [Sat, 14 Mar 2015 06:59:44 +0000 (06:59 +0000)]
Fix libb64 unsigned char issues while waiting for upstream to accept the patch

9 years ago#5505: Temporarily comment assert out so that nightly builds are usable again
Mike Gelfand [Wed, 11 Mar 2015 06:22:11 +0000 (06:22 +0000)]
#5505: Temporarily comment assert out so that nightly builds are usable again

9 years agoDefine one of LFS macros instead of using xxx64 functions directly.
Mike Gelfand [Tue, 10 Mar 2015 22:31:09 +0000 (22:31 +0000)]
Define one of LFS macros instead of using xxx64 functions directly.

There're too many functions and types to consider, and benefits of not
using LFS macros aren't that big (I was thinking of using fts(3) but
that may not happen soon or at all).

9 years agoUse lseek64 instead of lseek, if available (large files on 32-bit systems)
Mike Gelfand [Sun, 8 Mar 2015 19:14:24 +0000 (19:14 +0000)]
Use lseek64 instead of lseek, if available (large files on 32-bit systems)

9 years ago#5774: Fix alternative speed limits scheduled times (once more)
Mike Gelfand [Fri, 6 Feb 2015 20:08:36 +0000 (20:08 +0000)]
#5774: Fix alternative speed limits scheduled times (once more)

9 years agoPer-pixel vertical scroll in all the views (Qt client)
Mike Gelfand [Sat, 31 Jan 2015 17:40:44 +0000 (17:40 +0000)]
Per-pixel vertical scroll in all the views (Qt client)

9 years agoPass constant Prefs, TorrentFilter, TorrentModel objects where no modification is...
Mike Gelfand [Thu, 29 Jan 2015 22:44:43 +0000 (22:44 +0000)]
Pass constant Prefs, TorrentFilter, TorrentModel objects where no modification is needed

9 years agoFix build on Windows (blindly)
Mike Gelfand [Thu, 29 Jan 2015 22:10:00 +0000 (22:10 +0000)]
Fix build on Windows (blindly)

9 years agoDefine QT_NO_CAST_FROM_ASCII (Qt client)
Mike Gelfand [Thu, 29 Jan 2015 21:53:05 +0000 (21:53 +0000)]
Define QT_NO_CAST_FROM_ASCII (Qt client)

Use latin1 encoding most of the time where default encoding was used
before. Qt 4 assumes latin1 by default while Qt 5 uses utf-8 which is
not what we want.

Use utf-8 encoding in some places where default encoding was used before.
This includes strings coming from RPC.

Fix an issue with SortMode::names[] (filters.cc) where missing comma
between "sort-by-queue" and "sort-by-ratio" resulted in two array entries
being merged into solid "sort-by-queuesort-by-ratio" string and all the
following items being shifted compared to their enum counterparts.

9 years agoRevert unintended changes (debug output)
Mike Gelfand [Wed, 28 Jan 2015 23:08:41 +0000 (23:08 +0000)]
Revert unintended changes (debug output)

9 years agoTreat command-line arguments as UTF-8-encoded; hide char* Prefs setter, require expli...
Mike Gelfand [Wed, 28 Jan 2015 22:57:46 +0000 (22:57 +0000)]
Treat command-line arguments as UTF-8-encoded; hide char* Prefs setter, require explicit conversion

9 years agoFix "magnetLink" field type in RPC spec (reported by r04r)
Mike Gelfand [Sun, 25 Jan 2015 19:57:36 +0000 (19:57 +0000)]
Fix "magnetLink" field type in RPC spec (reported by r04r)

9 years agoUse TrPathButton in preferences dialog
Mike Gelfand [Sun, 25 Jan 2015 19:55:05 +0000 (19:55 +0000)]
Use TrPathButton in preferences dialog

9 years agoFix tab order in preferences dialog (Qt client)
Mike Gelfand [Sun, 25 Jan 2015 18:16:30 +0000 (18:16 +0000)]
Fix tab order in preferences dialog (Qt client)

9 years agoRework preferences dialog in Qt client to load from .ui
Mike Gelfand [Sun, 25 Jan 2015 15:47:03 +0000 (15:47 +0000)]
Rework preferences dialog in Qt client to load from .ui

9 years ago#5881: Explicitly state all possible crypto backend source files so that they are...
Mike Gelfand [Wed, 21 Jan 2015 22:32:27 +0000 (22:32 +0000)]
#5881: Explicitly state all possible crypto backend source files so that they are included into archive by `make dist`

9 years agoRework forms layout to workaround some stylesheet issues (Qt client)
Mike Gelfand [Wed, 21 Jan 2015 21:14:00 +0000 (21:14 +0000)]
Rework forms layout to workaround some stylesheet issues (Qt client)

9 years agoImprove tracker list look (torrent properties dialog), support RTL layout
Mike Gelfand [Tue, 20 Jan 2015 23:28:38 +0000 (23:28 +0000)]
Improve tracker list look (torrent properties dialog), support RTL layout

9 years agoSmall follow-up translation fixes (HTML formatting mess in tracker delegate mostly)
Mike Gelfand [Sun, 18 Jan 2015 13:19:30 +0000 (13:19 +0000)]
Small follow-up translation fixes (HTML formatting mess in tracker delegate mostly)