1
mirror of https://github.com/qbittorrent/qBittorrent synced 2025-10-09 18:32:15 +02:00

Compare commits

...

3023 Commits

Author SHA1 Message Date
sledgehammer999
0061b75200 Bump to 4.1.4 2018-11-19 01:42:20 +02:00
sledgehammer999
420c93a99e Update Changelog 2018-11-19 01:38:44 +02:00
sledgehammer999
93f1183cd7 Sync translations from Transifex and run lupdate 2018-11-19 01:36:56 +02:00
Chocobo1
b8fcc1fed2 Fix divide-by-zero crash
Previously here was using a cheap method to avoid divisor becoming < 0, but from
the crash stacktrace it seems this is not enough, now the divisor is properly
clamped to have 1 as the minimum.
Also it will now display "Unknown" for invalid calculation results.

Closes #9857.
2018-11-19 01:19:10 +02:00
Vladimir Golovnev (Glassez)
2b91be1905 Improve RSS Feed updating
Don't process "out-of-limit" articles.
Closes #9833.
2018-11-19 01:19:10 +02:00
sledgehammer999
7c9ef96ef8 Update Changelog 2018-11-15 00:12:33 +02:00
thalieht
37b4b69199 Allow resizing search filter in search job
Allow qBt to resize the search filter in search job because it causes
qBt's width to exceed the screen's width for laptop users.
2018-11-14 23:39:57 +02:00
sledgehammer999
fc18e6f8df Change FossHub RSS url for updates
The new RSS format is compatible with our current parser. FossHub will
redirect old URL to the new one so older clients will not be affected.
2018-11-14 23:39:57 +02:00
Chocobo1
4793a35e0b Don't double delete a pointer
`m_searchFilterAction` is owned by Qt, so we shouldn't delete it
manually.
2018-11-14 23:39:57 +02:00
Eugene Shalygin
4599da3ce1 cmake: use C++14 when available
Libtorrent does the same and we have to follow since
its ABI depends on the C++ standard version.

Partially closes #9485.
2018-11-14 23:39:57 +02:00
Chocobo1
dec4e41fdd Clean up SpeedLimitDialog class 2018-11-14 23:39:57 +02:00
Chocobo1
780ece0c25 Remove speed limit checkbox in Options dialog
This unifies speed limit UI elements throughout the program.
2018-11-14 23:39:57 +02:00
dzmat
aac8bfc398 Fix speed graph "high speeds" bug 2018-11-14 23:39:57 +02:00
Tom Piccirello
1a06a18336 Handle downloading .torrent file as success
We don't know whether the download will be successful, so default to success. Closes #9811.
2018-11-14 23:39:57 +02:00
Vladimir Golovnev (Glassez)
2d4f963d65 Don't update torrent status unnecessarily 2018-11-14 23:39:57 +02:00
Vladimir Golovnev (Glassez)
b54fe08201 Improve force recheck of paused torrent 2018-11-14 23:39:57 +02:00
Vladimir Golovnev (Glassez)
d1d0300491 Restore torrent in two steps
Add/restore all torrents in "paused" state and then resume those
that need to be really "resumed" (added/restored in "resumed" state).
Keep torrents with missing files paused.
Force recheck torrent with missing files when it's resumed by the user.
2018-11-14 23:39:57 +02:00
Chocobo1
7fff06f07b Improve parser for search engine versions.txt
The parse could fail when there is an extra empty line at the end of
file, this patch fixes it.
2018-11-14 23:39:57 +02:00
Chocobo1
3f9351042d Fix wrong type passed to arg() 2018-11-14 23:39:57 +02:00
Chocobo1
9e01dbab0f Fix defects found by lgtm.com 2018-11-14 23:39:57 +02:00
Chocobo1
d4a4b02cf6 Fix MSVC warning C4804
Full message of the warning:
webui\api\searchcontroller.cpp(54): warning C4804: '>': unsafe use of type 'bool'
in operation
2018-11-14 23:39:57 +02:00
dzmat
1f2c7a6671 Improve scaling of speed graphs
Make Y axis scale to fix on predetermined nice looking positions
2018-11-14 23:39:57 +02:00
Vladimir Golovnev (Glassez)
5a7b88c16c Fix Alternative Web UI to be available 2018-11-14 23:39:57 +02:00
Vladimir Golovnev (Glassez)
93351476e4 Consider empty locale setting as not set 2018-11-14 23:39:57 +02:00
Thomas Piccirello
e1bfa95a63 Use QElapsedTimer 2018-11-14 23:39:57 +02:00
Thomas Piccirello
7030cc08e7 Add free disk space to WebUI status bar
Closes #6829.
2018-11-14 23:39:57 +02:00
Thomas Piccirello
a1da9812a5 Catch invalid values 2018-11-14 23:39:57 +02:00
Vladimir Golovnev (Glassez)
8ebc0f529c Fix indentation in tstool.py 2018-11-14 23:39:57 +02:00
Tom Piccirello
e0d47649bc Bump WebAPI version 2018-11-14 23:39:57 +02:00
silver
524d503860 Recognize *.ts files as previewable 2018-11-14 23:39:57 +02:00
Thomas Piccirello
cffafa8e9f Add WebUI search API controller
Closes #2495.
2018-11-14 23:39:57 +02:00
Thomas Piccirello
0fda919268 Instantiate SearchPluginManager with other application components 2018-11-14 23:39:57 +02:00
Chocobo1
7d98c34e17 Fix TravisCI cmake build on macOS
Instead of hard coding a macOS version to use, now we follow TravisCI default
version, currently: xcode9.4.
2018-11-14 23:39:57 +02:00
Thomas Piccirello
93147e787b Fix WebUI Auto TMM context menu bug
When multiple torrents are selected with different Auto TMM values, the Auto TMM context menu option is hidden. This option is never unhidden, requiring a refresh of the page.
2018-11-14 23:39:57 +02:00
Eugene Shalygin
80435bae7e cmake: restore out-of-source build
Qt translations have to be compiled in a shared library or executable,
and since we use static libraries for the components, webui translation
files have to be compiled into the main executable.
2018-11-14 23:39:57 +02:00
Chocobo1
b367e5c197 Simplify #if conditions 2018-11-14 23:39:57 +02:00
Chocobo1
5336c71da5 Add isNetworkFileSystem() detection on Windows
This allows network mounts to be monitored correctly by polling timer.
2018-11-14 23:39:57 +02:00
dzmat
27f6db976d Reduce horizontal graphs resolution
Rewrite averaging code and reduce horizontal graphs resolution for
30 minutes and 6 hours graphs to decrease CPU usage.
2018-11-14 23:39:57 +02:00
Administrator account
8223d61fa7 Don't recheck just checked torrent
Closes #8743.
Closes #9370.
2018-11-14 23:39:57 +02:00
Vladimir Golovnev (Glassez)
3eef12bd8f Use independent translation for WebUI 2018-11-14 23:39:57 +02:00
Vladimir Golovnev (Glassez)
9e70a6c499 Create WebUI translation update tool 2018-11-14 23:39:57 +02:00
Thomas Piccirello
fec3a87421 Add categories WebAPI
Closes #5330.
2018-11-14 23:39:57 +02:00
dzmat
59aac32eb9 Allow to disable speed graphs 2018-11-14 23:39:57 +02:00
Chocobo1
5ef3917769 Add FileSystemWatcher log messages 2018-11-14 23:39:57 +02:00
Chocobo1
2f767d96d9 Add SMB2 magic number
Closes #9671.
2018-11-14 23:39:57 +02:00
silverqx
de24fdfdc2 Clear LineEdit on ESC 2018-11-14 23:39:57 +02:00
Stephen Dawkins
3bb6a68c9d Allow to disable downloading REPACK/PROPER matches 2018-11-14 23:39:57 +02:00
sledgehammer999
f2406eb2f3 Use a more detailed alert mask where possible
Closes #9547
2018-11-14 23:39:57 +02:00
Thomas Piccirello
4923ed7da0 Fix minor JavaScript defects 2018-11-14 23:39:57 +02:00
Thomas Piccirello
82056355f6 Add locale to js file path
This reduces the likelihood of a cached file being used after the locale is changed.
2018-11-14 23:39:57 +02:00
Thomas Piccirello
f3bd2a295f Translate WebUI torrents Status column
Closes #9554.
2018-11-14 23:39:57 +02:00
dzmat
cc96760839 Update uncrustify.cfg
Suddenly uncrustify does not append spaces after comma in function's argument lists. I found only one option which looks fit for it.
2018-11-14 23:39:57 +02:00
Chocobo1
ae95943f69 Remove default parameter in derived function
When derived function have different default value than base, it might cause
unnecessary confusion, see: https://stackoverflow.com/q/3533589
2018-11-14 23:39:57 +02:00
Chocobo1
d3067f939e Avoid variable shadowing 2018-11-14 23:39:57 +02:00
Chocobo1
b6addd304c Add include guard to headers 2018-11-14 23:39:57 +02:00
Chocobo1
d1ae6e8d58 Update Python URLs 2018-11-14 23:39:57 +02:00
Chocobo1
4445c2dab2 Fix asking to install Python
The dialog asking users to install python is borked since the last refactor, this
commit fixes it.
2018-11-14 23:39:57 +02:00
Chocobo1
fcc1564a62 Move python related functions
Also the functions are slightly changed to return full path of the found
python executable.
2018-11-14 23:39:57 +02:00
sledgehammer999
615eeb7144 Make strings actually translatable 2018-11-14 23:39:57 +02:00
sledgehammer999
855bb118b5 Remove unused variable 2018-11-14 23:39:57 +02:00
dzmat
9f1eb3600a Replace magic number with system define 2018-11-14 23:39:57 +02:00
Eugene Shalygin
fb885d89c1 Reword the warning message 2018-11-14 23:39:57 +02:00
Chocobo1
a846916beb Reformat python code to be compliant with PEP8
The following command is used:
`pycodestyle --ignore=E265,E722 --max-line-length=100 <py files>`
2018-11-14 23:39:57 +02:00
sledgehammer999
a574c4a70a Bump to 4.1.3 2018-09-18 22:49:35 +03:00
sledgehammer999
1e367f818d Update Changelog 2018-09-18 22:46:42 +03:00
sledgehammer999
00599c8f02 Sync translations from Transifex and run lupdate 2018-09-18 22:36:43 +03:00
sledgehammer999
332a836746 Bump Web API version 2018-09-18 22:36:16 +03:00
Yaroslav Pronin
a1992acc16 Fix typo in variable name 2018-09-13 22:37:56 +03:00
Thomas Piccirello
c3f002a544 Add save path and editing to WebUI new category dialog 2018-09-13 22:37:56 +03:00
Thomas Piccirello
c28cbe0a74 Include category save path in web api sync data 2018-09-13 22:37:56 +03:00
Thomas Piccirello
435daaceed Require torrent category creation to be explicit 2018-09-13 22:37:56 +03:00
sledgehammer999
e29ab0087b Save state change from queued to paused 2018-09-12 17:30:19 +03:00
sledgehammer999
aadd5a3312 Fix macOS builds in travis-ci 2018-09-12 17:30:19 +03:00
thalieht
7e354ffad3 Preselect name without extension when renaming files
And preselect the whole string for everything else.
2018-09-12 17:30:19 +03:00
thalieht
ee6a071fb6 Refactor in searchjob to always color visited entries
Now it colors multiple entries, when visited at once, via the hotkey or
the Download button.
2018-09-12 17:30:19 +03:00
thalieht
bc8b838953 Set "enter" as shortcut to download the selected torrents in search job 2018-09-12 17:30:19 +03:00
thalieht
5251d93b3d Fix some warnings 2018-09-12 17:30:19 +03:00
thalieht
84f0dbecfe Show "N/A" if there is no scrape
Disambiguates whether the tracker send a response of 0 peers/seeds/downloaded or didn't send one at all.
2018-09-12 17:30:19 +03:00
sledgehammer999
bba0c8b2cc Save option about tracker favicons under correct key 2018-09-12 17:30:19 +03:00
sledgehammer999
2f90be8bd2 Decrease probability of missing important alerts
During startup we can get above 1000 alerts at each pop even with only
30 torrents in the queue. This is because libtorrent will post
piece_finished_alert and file_completed_alert for each torrent. These
alerts push out of the way the ones we care about.
The alert queue will be grown to max only if needed. So we don't use
more memory. It will greatly depend on how many torrents a user has in
their session.

When getting fastresume_rejected_alert we need to act as fast as
possible in pausing it, otherwise there's a chance it will begin
downloading and writing to disk before we pause it.
2018-09-12 17:30:19 +03:00
Thomas Piccirello
cb6b6296aa Allow WebUI sidebar filters to be hidden 2018-09-12 17:30:19 +03:00
Thomas Piccirello
9d25fdce2a Increase WebUI Options initial height 2018-09-12 17:30:19 +03:00
Thomas Piccirello
12b2732f1a Adjust WebUI Options form alignment 2018-09-12 17:30:19 +03:00
Chocobo1
8c9ece73ee Fix GUI scaling issue on Linux
It seems `QT_AUTO_SCREEN_SCALE_FACTOR` doesn't work as expected.
Closes #6935.
2018-09-12 17:30:19 +03:00
Thomas Piccirello
a7db786387 Don't disable DHT when using force proxy
Closes #9292
2018-09-12 17:30:19 +03:00
Chocobo1
e5bf65c9bd Update INSTALL file
Closes #9385.
2018-09-12 17:30:19 +03:00
Chocobo1
900e7d3a14 Reset button text to default
This is to avoid Qt auto-generating code like this:
  `buttonAdd->setText(QStringLiteral(""));`
Which makes no sense and triggers clazy warning (Wclazy-empty-qstringliteral).
2018-09-12 17:30:19 +03:00
Chocobo1
f1ff74a926 Avoid copy-construct QString in for loop 2018-09-12 17:30:19 +03:00
Elias M. Mariani
30bc4b837e Support the OpenBSD filesystem 2018-09-12 17:30:19 +03:00
sledgehammer999
050a4f8b23 Fix TravisCI macOS builds 2018-09-12 17:30:19 +03:00
thalieht
487103d58f Save torrents priorities on torrent finished
Save fastresumes for all torrents that shifted in the queue when a torrent finished.
2018-09-12 17:30:19 +03:00
thalieht
eeea69d4c1 Save fastresumes when changing torrent priorities 2018-09-12 17:30:19 +03:00
Vladimir Golovnev (Glassez)
00360ad418 Always save actual queue position 2018-09-12 17:30:19 +03:00
thalieht
a733253ae5 Allow setting seq & first/last from context menu without metadata 2018-09-12 17:30:19 +03:00
thalieht
9788ee042b Rename 2 methods to eliminate ambiguity 2018-09-12 17:30:19 +03:00
thalieht
e9c9ea3bba Add regex option in the search filter's context menu
In the search job widget.
2018-09-12 17:30:19 +03:00
Chocobo1
312dfb989d Fix WebUI unreachable issue
QVariant doesn't have constructor for plain char, by default it converts
a plain char into an integer, hence the WebUI issue.
Closes #9333.
2018-09-12 17:30:19 +03:00
Chocobo1
75deafe5b1 Add config file for SVGO 2018-09-12 17:30:19 +03:00
Chocobo1
4ca257a389 Fix icon height/width ratio
It was causing misalignment in TransferListFiltersWidget text label.
2018-09-12 17:30:19 +03:00
Chocobo1
03375a78f2 Fix values sorted wrong in "Last Activity" column
I suspect there could be other negative values.
Closes #9012.

Also apply the changes to TR_RATIO_LIMIT, avoiding similar problems.
2018-08-17 21:40:04 +03:00
sledgehammer999
423c7066d7 Fix mingw warning about unrecognized escape sequence
Warning introduced by commit 6203f23f06
2018-08-17 21:40:04 +03:00
Chocobo1
5cd5cc71a8 Replace png icons with svg 2018-08-17 21:40:04 +03:00
Chocobo1
45d4d22055 Remove GuiIconProvider::generateDifferentSizes()
Let Qt do the scaling seems to be fine.
2018-08-17 21:40:04 +03:00
Eli Schwartz
916a92aa0d Fix regression that broke installing desktop file
In commit 5d94db9c79 the desktop file was
moved from src/ to dist/ but the relative path from src/src.pro was
switched to an absolute path from the repository root. This broke
detection of the file from within qmake.

Fix by using the same $DIST_PATH used elsewhere for consistency, which
uses ../dist/.
2018-08-17 21:40:04 +03:00
sledgehammer999
d1ebbcb35d Bump to 4.1.2 2018-08-12 21:16:29 +03:00
sledgehammer999
2743d998a8 Update Changelog 2018-08-12 21:13:12 +03:00
sledgehammer999
dbbfbaff9f Bump Web API version 2018-08-12 21:10:28 +03:00
sledgehammer999
0be8439cf6 Sync translations from Transifex and run lupdate 2018-08-12 21:10:28 +03:00
Chocobo1
66982c5524 Fix lupdate errors
I suspect lupdate isn't smart enough to figure out what tr() is suppose
to do, so just make it a static function in class.
The error was: tr() cannot be called without context
2018-08-12 20:59:52 +03:00
Chocobo1
85af8547f7 Generate i18n .ts files in the correct directory
Fixup 5b7c089dd2.
Closes #9313.
2018-08-12 20:59:52 +03:00
thalieht
e26977ab2c Add hotkey for toggling focus between the search LineEdits 2018-08-12 16:50:13 +03:00
thalieht
ec1cc783a6 Limit the scope of find torrents hotkey in MainWindow
To TransferListWidget because it will interfere with the SearchWidget's focus hotkey
2018-08-12 16:50:13 +03:00
thalieht
03b00ec045 Add a name filter for search results
Closes #8226
2018-08-12 16:50:13 +03:00
Lukas Greib
5e90156e9e Inhibit sleep regardless of activity
"Active torrents" is a somewhat unintuitive concept as a basis for
preventing sleep, as torrents can become active or inactive on the
network at any time. This brings some predictability to the inhibit
sleep option, and will inhibit sleep as long as there are unpaused
downloads or uploads, regardless of network activity.

Closes #1696, #4592, #4655, #7019, #7159, #7452
2018-08-12 16:50:13 +03:00
thalieht
052206efa1 Add option for regexps in the transferlist search filter's context menu 2018-08-12 16:50:13 +03:00
sledgehammer999
305d73180b Update Changelog 2018-08-12 11:51:43 +03:00
Couchy
80000bf0fd Avoid allocating large memory when loading a .torrent file
`QIODevice::read(qint64 maxSize)` will allocate full `maxSize` of memory no matter
what the real file size was, this caused users to experience out-of-memory
exception on 32-bit qbt.
Also handle the OOM execption if it still fails.

Closes #9064, #9075, #9130, #9239, #9246, #9279.
2018-08-12 11:08:06 +03:00
sledgehammer999
06ebe756e8 Notify users on 1st time close/minimize to tray 2018-08-12 11:08:06 +03:00
sledgehammer999
5fa3d9f19c Revert "Set "close to tray" to false as default"
This reverts commit dc9ec0e408.
2018-08-12 11:08:06 +03:00
Chocobo1
5b4c6d3665 Fix I/O error after fetching magnet metadata
It is caused by an extra path seperator, so removing it fixes it.
Fixup 9612a75faa.
2018-08-12 11:08:06 +03:00
sledgehammer999
77bd0f17d1 Update AppVeyor config 2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
03a702cfbd Never save resume data for already paused torrents 2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
a932cd2ec1 Reorder resume data saving conditionals
Having conditionals which can break saving of torrent resume data
in order from more likely to less likely is more effective.
2018-08-12 11:08:06 +03:00
Chocobo1
8e5743380a Make ProgramUpdater upgrade to 64-bit qbt when running on 64-bit Windows 2018-08-12 11:08:06 +03:00
Chocobo1
8001eb0368 Avoid regenerating .qm files unnecessarily
Translations included at top level is to avoid regenerating the .qm files every
time when src.pro is processed.
Partially revert 5b7c089dd2.
2018-08-12 11:08:06 +03:00
Chocobo1
f214dc88fc Put temporary files in qbt own temp folder 2018-08-12 11:08:06 +03:00
Chocobo1
5cff5ab135 Refactor GuiIconProvider::generateDifferentSizes() 2018-08-12 11:08:06 +03:00
Chocobo1
82ba154b64 Add const to function signature 2018-08-12 11:08:06 +03:00
thalieht
4ea44bbd2b Set "close to tray" to false as default 2018-08-12 11:08:06 +03:00
Chocobo1
a5e68a8725 Avoid potentially setting the wrong piece priorities
Updating file priorities is an async operation in libtorrent, when we
just updated it and immediately query it, we might get the
old/wrong values, so we rely on `updatedFilePrio` in this case.
2018-08-12 11:08:06 +03:00
Chocobo1
70291014d1 Refactor code
Make the code slightly easier to read.
2018-08-12 11:08:06 +03:00
Chocobo1
1aabcfc30c Add const to function parameters 2018-08-12 11:08:06 +03:00
Thomas Piccirello
aba80e2b1c Send all rechecks in one request 2018-08-12 11:08:06 +03:00
Thomas Piccirello
be683fbcd3 Add WebUI Force Reannounce option 2018-08-12 11:08:06 +03:00
Chocobo1
2bcf09cfa5 Remove static keyword overuse 2018-08-12 11:08:06 +03:00
Chocobo1
697325af63 Move member variable initialization
Move the initialization from constructor body to member initializer
list.
Remove superfluous initializer.
2018-08-12 11:08:06 +03:00
Chocobo1
c21bd77be5 Remove unnecessary dynamic allocation
Also remove unneeded `if ()` conditional.
2018-08-12 11:08:06 +03:00
Chocobo1
d5430adaaa Avoid binding constant reference to returned object
In such cases, it makes no sense doing so.
2018-08-12 11:08:06 +03:00
Chocobo1
9e99a0d3f5 Replace single-character string with character literal
Also remove unnecessary dynamic allocation.
2018-08-12 11:08:06 +03:00
sledgehammer999
d088ab6f43 Remove trailing dot from headings 2018-08-12 11:08:06 +03:00
sledgehammer999
820d510c12 Add a TOC in the coding guidelines 2018-08-12 11:08:06 +03:00
Chocobo1
676847fcd0 Add options in AddNewTorrentDialog
The new checkboxes are: "Download in sequential order", "Download first
and last pieces first".
2018-08-12 11:08:06 +03:00
Chocobo1
0204630ee6 Revise dialog messages
Using critical dialog is a bit too strong as qbt didn't actually run
into something that fails, so downgrade to warning dialog.
2018-08-12 11:08:06 +03:00
Chocobo1
b515c7eda4 Fix typo 2018-08-12 11:08:06 +03:00
Chocobo1
73fcecac76 Simplify code
This avoids "deferencing null pointer" warning from static analyzers.
2018-08-12 11:08:06 +03:00
Chocobo1
a7b82ebcb5 Cache more preference values
These values from Preference class are frequently used.
Also group related variables together.
2018-08-12 11:08:06 +03:00
Eugene Shalygin
f8598b010d Use proper include files in the QtSingleApplication find module.
Look for qtsinglecoreapplication.h when Qt5Widgets module was not found,
and qtsingleapplication.h otherwise. Fixes #9196.

This also removes Qt4 support from the QtSingleApplication find module.
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
93779bcc4b Download favicon using appropriate protocol
Some trackers use UDP protocol but we can't download its favicon
using UDP. Just try to download it using HTTP.
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
938f5b9dd9 Apply proxy settings on DownloadManager creation 2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
3b4d9f49d5 Improve torrent initialization
Don't post "torrent resumed" event when torrent starts in "resumed"
state.
Fix confusing names. Now "resumed torrent" means "unpaused torrent"
only. When we load previously added torrent it is called "restored
torrent".
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
171c93af50 Save resume data on torrent change events
Closes #9174.
2018-08-12 11:08:06 +03:00
sledgehammer999
6f81e40106 Revert email address changes in copyright notices 2018-08-12 11:08:06 +03:00
tjjh89017
e19b5cb2ce Add async io threads option to AdvancedSettings 2018-08-12 11:08:06 +03:00
Chocobo1
2c69faca58 Allow save resume interval to be disabled
Also raise the allowable upper limit
2018-08-12 11:08:06 +03:00
Chocobo1
9272151d0a Prolong resume data save interval 2018-08-12 11:08:06 +03:00
Chocobo1
d45ebf5a43 Remove unnecessary resources inclusion 2018-08-12 11:08:06 +03:00
thalieht
8074be7644 Delete several unused #include 2018-08-12 11:08:06 +03:00
thalieht
c99ac99a99 Fix coding style 2018-08-12 11:08:06 +03:00
thalieht
976e2450ec Convert the names used in ui and c++ files from snake_case to camelCase 2018-08-12 11:08:06 +03:00
Chocobo1
7e4db8fafd Fix python version detection
Closes #9146.
2018-08-12 11:08:06 +03:00
Chocobo1
115a409d92 Clear python cache conditionally
Clear the cache artifacts on plugin install and plugin uninstall events.
2018-08-12 11:08:06 +03:00
Chocobo1
c203ab3d16 Refactor function
In SearchPluginManager::updateNova(), omit removing __pycache__ folder and pyc
files, those files will be recreated anyway.
Add const to variables
2018-08-12 11:08:06 +03:00
Chocobo1
5dff96496d Rename function 2018-08-12 11:08:06 +03:00
Chocobo1
f813935011 Cache SearchPluginManager::engineLocation() result
Also the folder is only created on first usage.
2018-08-12 11:08:06 +03:00
Chocobo1
2be719449f Replace less-efficient QProcess::setEnvironment
Also small refactor
2018-08-12 11:08:06 +03:00
Chocobo1
2094c870d5 Simplify function 2018-08-12 11:08:06 +03:00
Chocobo1
4fe93ae8b8 Add checkbox for recursive download dialog
Also group similar options together.
2018-08-12 11:08:06 +03:00
Chocobo1
fff1103cf4 Work around crash when procesing recursive download
The messagebox is modal and exec() it makes it generates a new local
event loop, however the new local event loop will continue to process
libtorrent events (in Session::readAlerts()), at the time exec()
returns, the original libt::alert pointers are lost and resume
processing alerts will cause the crash.
One solution is to make the messagebox use show() and avoid exec().

Closes #9086.
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
8cede43a45 Make TorrentInfo loading behavior uniform 2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
9b1fa3a5af Use new DownloadManager interface 2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
409e73c074 Implement "Sequential downloading" feature
Closes #6835.
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
c893729d62 Implement DownloadRequest helper 2018-08-12 11:08:06 +03:00
Chocobo1
945466968c Reduce queries to python version
Instead of doing at least 2 queries for python infos, now requires only
1 query (in ideal condition), and the result is cached.
2018-08-12 11:08:06 +03:00
Chocobo1
54f080b755 Move related functions to Utils::Python 2018-08-12 11:08:06 +03:00
Goshik
bfad14d552 Create non-existing path in setLocationAction()
When using qbittorrent-nox it is not always possible to manually create
the target path for torrent moving. This commit allows automatic path
creation. It also allows to display error messages in the
'Set location' window.
2018-08-12 11:08:06 +03:00
Chocobo1
2972e1596d Move optimization flags
Those flags aren't strictly required when compiling but they are
recommended to be on.
2018-08-12 11:08:06 +03:00
Chocobo1
987d2aae88 Turn on Control Flow Guard for MSVC builds
The performance impact should be negligible according to the
documentation on msdn.
Closes #9101.
2018-08-12 11:08:06 +03:00
hannsen
4707d34fad Properly normalize version string before parsing it
This allows python scripts to be formatted in PEP 8 style.
2018-08-12 11:08:06 +03:00
Chocobo1
2ffc09d097 Move qm_gen.pri 2018-08-12 11:08:06 +03:00
Chocobo1
afa8d6bb8f Move .desktop file 2018-08-12 11:08:06 +03:00
Chocobo1
a37ead98e8 Move .ico files into icons dir 2018-08-12 11:08:06 +03:00
Chocobo1
c73cd8d618 Move .qrc files into its own directory 2018-08-12 11:08:06 +03:00
thalieht
800a3aa61e Change file names and classes names to match them 2018-08-12 11:08:06 +03:00
Thomas Piccirello
ebd815be75 Add WebUI support for Mac ⌘ (Command) key
The Command key will now be recognized for WebUI Table multi-selection, as Ctrl is.
2018-08-12 11:08:06 +03:00
Thomas Piccirello
ef669acf89 Implement key functions in Class and refactor 2018-08-12 11:08:06 +03:00
thalieht
ac6426eab1 Fix coding style 2018-08-12 11:08:06 +03:00
Chocobo1
b107b745f2 Revise usage of BOOST_NO_CXX11_RVALUE_REFERENCES
Now the flag will be present when building with boost version <= 1.59.
Closes #8990.
2018-08-12 11:08:06 +03:00
Goshik
3d851a448f Show current save path in 'Set location' window
The feature is useful when the user needs to move their torrent to a
sub or parent folder. If more than one torrent is chosen, the path
of the first selected torrent is used. The window was made wider to
allow more convenient editing of long paths.
2018-08-12 11:08:06 +03:00
Chocobo1
ce133f01aa Replace deprecated function on macOS
Closes #8993.
2018-08-12 11:08:06 +03:00
Chocobo1
492d378537 Disable certain mouse wheel events in Options dialog
The mouse wheel events for QComboBox & QSpinBox widgets in Options
dialog are filtered out.
2018-08-12 11:08:06 +03:00
Chocobo1
7ece484423 Remove duplicate private sections in class
And group related methods & variables together.
2018-08-12 11:08:06 +03:00
Chocobo1
be5ad63e21 Replace post-increment with pre-increment
And post-decrement with pre-decrement.
2018-08-12 11:08:06 +03:00
Eugene Shalygin
bdac8f8db8 Fix option name in winconf-xxx.cmake
The mistake was made by commit 7712d0ada0
2018-08-12 11:08:06 +03:00
Eugene Shalygin
bb893e70c5 Refactor CMake build scripts
1. Use FeatureSummary module to show configuration results.

2. Invert option()/find_package() relationship: instead of
calling find_package(... REQUIRED) when option is set, rely on optional
find package call and PackageName_FOUND variable.

3. Refactor handling options that result in simple preprocessor defines
(actually copy the snippet from libtorrent) so that everything is done
in a single function call.

4. Populate target properties in order to get rid of
include_directories() calls.
2018-08-12 11:08:06 +03:00
Chocobo1
57ec9db532 Fix WebUI cache behavior for css files
The style.css in public & private folders share the same URI, this
confuses the browser cache, so rename one of them.
2018-08-12 11:08:06 +03:00
Chocobo1
0287481001 Send Cache-Control header in WebUI responses
Tune the caching time to be shorter, in case there is a program
update.
Change the cacheability to private, as WebUI resources are not intended
to be cached at proxy.
For uncacheable responses, send out "no-store" explicitly to halt
browser caching.
2018-08-12 11:08:06 +03:00
Chocobo1
0167496ecb Add changelog link in program updater
Closes #8997.
2018-08-12 11:08:06 +03:00
Thomas Piccirello
d86cf193a0 Rename variables for clarity 2018-08-12 11:08:06 +03:00
Thomas Piccirello
246cad1108 Add form-action to CSP
This option restricts all form submissions to the WebUI's origin.
qBittorrent only ever submits forms to the origin, so this is intended as a security measure.
2018-08-12 11:08:06 +03:00
Thomas Piccirello
23bf86a8a8 Add upgrade-insecure-requests to CSP when HTTPS is enabled
This option automatically upgrades all http connections to https.
It ensures http urls cannot be accessed when in https mode, and is intended as a security measure.
2018-08-12 11:08:06 +03:00
thalieht
6ce4c885b9 Fix coding style 2018-08-12 11:08:06 +03:00
Chocobo1
faf84e483a Reset WebUI ban counter on login success 2018-08-12 11:08:06 +03:00
Chocobo1
576004c840 Add logging messages in WebUI login action 2018-08-12 11:08:06 +03:00
Chocobo1
c93b05c293 Replace QRegExp with QRegularExpression
Revise `static` keyword usage, static is added to frequently used
instances.
2018-08-12 11:08:06 +03:00
Chocobo1
55c3813fac Cleanup header include order
Add missing header.
Cleanup license.
2018-08-12 11:08:06 +03:00
Chocobo1
725c6857be Improve WebUI security measures
CSP was erroneously disabled in bad4d94f77
when clickjacking protection is off, now it is back.
Also added CSP 'frame-ancestors' directive when clickjacking
protection is enabled.
2018-08-12 11:08:06 +03:00
Chocobo1
86767c9ab4 Refactor function 2018-08-12 11:08:06 +03:00
Chocobo1
46aa631d2b Improve DownloadFromURL behavior
URL should be considered case sensitive.
2018-08-12 11:08:06 +03:00
Chocobo1
7c61a937c9 Move DownloadFromURLDialog to its own file
Simplify code, no functionality changes.
Remove debug messages.
Capitalize dialog name.
Capitalize class name.
Update license text.
2018-08-12 11:08:06 +03:00
Chocobo1
b8d65dcc45 Add missing header include 2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
b9ab83eaf2 Don't use RSS feed URLs as base for file names
RSS feed URLs can be too long and exceed max path limit.
Add RSS feed UIDs and use UIDs as base for file names instead of URLs.
Closes #8399.
2018-08-12 11:08:06 +03:00
Chocobo1
8b7b563992 Add constexpr to IndexInterval class
Add const to IndexRange private members.
Remove redundant inline specifier.
Add missing parentheses.
2018-08-12 11:08:06 +03:00
Chocobo1
b813a878d7 Add constexpr to TriStateBool class 2018-08-12 11:08:06 +03:00
Chocobo1
54e486c389 Improve Utils::Version class
Add operator>=() and operator<=().
More methods are suitable to be constexpr.
Remove redundant boundary checking.
2018-08-12 11:08:06 +03:00
Chocobo1
12d0a3acc1 Add option to control CSRF protection
Some users are using WebUI with simple port-forwarding from their router,
providing an option to control the protection will save them from setting up an
non-trival web proxy.
Closes #7274.
2018-08-12 11:08:06 +03:00
Chocobo1
6ad2a13386 Add option to control WebUI clickjacking protection
Some users actually want embedding WebUI into their custom build iframe.
Closes #7370.
2018-08-12 11:08:06 +03:00
Chocobo1
2a9c401db9 Update Options dialog layout in WebUI 2018-08-12 11:08:06 +03:00
sledgehammer999
ea5a29018f Bump to 4.1.1 2018-05-27 21:35:07 +03:00
sledgehammer999
c8d0a715e8 Update Changelog 2018-05-27 21:30:13 +03:00
sledgehammer999
2cfc6514ab Sync translations from Transifex and run lupdate 2018-05-27 21:03:53 +03:00
sledgehammer999
1d78bc7206 Bump Web API version 2018-05-27 21:03:53 +03:00
Chocobo1
e5577e43f8 Replace raster qbt logo with vector version
Add helper function for svg icons.
2018-05-27 18:31:51 +03:00
Chocobo1
17c0463906 Fix GUI scaling factor on macOS
macOS seems have an unique way to handle widget size, that is, it doesn't require
application to resize widgets manually, Qt will handle the resize job
automatically.

Closes #8841.
2018-05-27 18:31:51 +03:00
Chocobo1
4168772904 Use 32px icons for favicon
One less resource to manage and 16px size can be downsampled from 32px
on-the-fly anyway.
2018-05-27 18:31:51 +03:00
sledgehammer999
44f2186749 Fix compilation without D-Bus support
Closes #8977
2018-05-27 18:31:51 +03:00
Chocobo1
0c918bcc3a Initialize variables properly
The warnings are emitted when compiling on msys2, mingw

The warning was:
gui/torrentcontentmodel.cpp:135:33: warning: missing initializer for
member '_SHFILEINFOW::iIcon' [-Wmissing-field-initializers]

..\..\qBittorrent\src\app\stacktrace_win.h:141:30: warning: missing
initializer for member '_IMAGEHLP_LINE64::Key'
[-Wmissing-field-initializers]
2018-05-27 18:31:51 +03:00
sledgehammer999
0a8925dc75 Suppress multiple I/O errors for the same torrent
When a file error happens libtorrent spews a ton of `file_error_alert`
which result in log floods and notification balloon floods. The later
might render the program inaccessible because the constant
notifications prevent the user from interacting with the tray icon.

Closes #8934
2018-05-27 18:31:51 +03:00
airium
a446597597 Update strace_win to stacktrace in conf.pri.windows
It is advised to update the stack trace statement since #8701, otherwise people may forget to change it, which results in that no pdb file is generated for Windows distribution package.
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
54354a2732 Add missing 'return' statement 2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
d94b8f08ab Use RSS feed update time as a fallback
Some sites omit publication date in its RSS feed articles
that prevents "Ignore Subsequent Matches" to work properly.
Closes #8959.
2018-05-27 18:31:51 +03:00
Chocobo1
0d8189efeb Relax behavior of "Download first and last piece first"
Now it applies the setting to all files in torrent, no matter whether
the file is previewable or not.

Torrent client shouldn't be smart by deciding which file this
option will be applied to, i.e. it should just follow the user's decision.
2018-05-27 18:31:51 +03:00
Chocobo1
00c886e426 Refactor code
Add const to variables.
Add Logger message.
Simplify code logic.
2018-05-27 18:31:51 +03:00
Chocobo1
551fc35439 Simplify the saving & loading of a setting
Remove excessive usage of constexpr.
2018-05-27 18:31:51 +03:00
Chocobo1
9ff17c8d9d Make use of QStringLiteral
Only changed instances that are initialized at program start.
2018-05-27 18:31:51 +03:00
Chocobo1
ec37732e99 Use smaller type 2018-05-27 18:31:51 +03:00
adem
8a414f32a8 Update Windows icons 2018-05-27 18:31:51 +03:00
sledgehammer999
bac06acb49 Fix Stats dialog size
Partially reverts e31ec20ec4.
Closes #8870.
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
ae1e3c2a81 Rename torrent if content was initially renamed
Closes #8910.
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
67940eb0f9 Place "Use Smart Episode Filter" more correctly 2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
007aa8480e Make "Ignoring days" to behave like other filters
This prevents confusing in GUI when it shows matched RSS
articles which be really ignored by the rule.
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
dedec10c58 Improve code of RSS auto-downloading rule
Closes #8933.
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
75219e21be Add last used save path to the front of history 2018-05-27 18:31:51 +03:00
Evgeny Lensky
10f5964f8e Fix open destination folder with Nautilus > 3.28
Closes #8923.
2018-05-27 18:31:51 +03:00
Chocobo1
a4a64d51c0 Improve "Run External Program" behavior
This follows utorrent behavior: they don't append backslash character at
the end of path variables.
Closes #8836.
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
1014313d88 Rename RSS properties to follow other names 2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
e486bb4c29 Properly set RSS settings via API
Closes #8925.
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
5c3d9ffb46 Properly fill UploadedFile::filename field
Closes #8928.
2018-05-27 18:31:51 +03:00
Chocobo1
2e474fd8db Detect endianness at compile time 2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
b2b110ae1f Add option to remember last used save path
Replace in "Add new torrent" dialog confusing "Set as default save path" option
with "Remember last used save path" option that affects only selected value in
"Save path" combo box.
Closes #7323.
2018-05-27 18:31:51 +03:00
Chocobo1
68a34e0738 Refactor code
Add const to variables.
No functionality change.
2018-05-27 18:31:51 +03:00
Chocobo1
38fa575958 Apply locale changes immediately in WebUI 2018-05-27 18:31:51 +03:00
Chocobo1
6cfeefe054 Rename variables
Variable name should not start with underscore as C++ standard stated it
is reserved.
2018-05-27 18:31:51 +03:00
Chocobo1
8007971a53 Fix i18n in WebUI
Closes #8844.
2018-05-27 18:31:51 +03:00
Chocobo1
d66bd30fae Make strings translatable
Closes #8866.
2018-05-27 18:31:51 +03:00
sledgehammer999
3fa59b1b12 Don't migrate torrents that have newer fastresumes 2018-05-27 18:31:51 +03:00
sledgehammer999
20e7aff393 Delete non-commited fastresume files
Old v3.3.x format had a number at the end indicating the queue position.
The naming scheme was '<infohash>.fastresume.<queueposition>'.
However, QSaveFile, which uses QTemporaryFile internally, might leave
non-commited files behind eg after a crash. These files have the
naming scheme '<infohash>.fastresume.XXXXXX' where each X is a random
character. We try to detect the latter and remove it without "migrating"
the fastresume to the new saving system.
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
4b7ce87f57 Fix params handling for some legacy API methods
Closes #8880.
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
2075533468 Improve legacy API params handling 2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
a4ad5c8d11 Fix invalid API calls in WebUI
Closes #8899.
2018-05-27 18:31:51 +03:00
sledgehammer999
35f2f56757 Fix deletion of old logs 2018-05-27 18:31:51 +03:00
Marcel Petersen
e6f4aa6a2f Filter torrent info endpoint by hashes
Added hashes parameter to info action.
Allows filtering seralized torrents by passing it into the TorrentFilter.
2018-05-27 18:31:51 +03:00
sledgehammer999
92fc62bb0d Show rechecking progress
When having big torrents, the rechecking might take a while to
complete. Users need some sort of feedback that progress is being made.
Also, I changed the float to qreal since that's the return type.
2018-05-27 18:31:51 +03:00
sledgehammer999
44b57a59f5 Log successful torrent move 2018-05-27 18:31:51 +03:00
sledgehammer999
97b8e02bf5 Add 'Moving' state for torrents being relocated/moved
This is another indication to the user that something is happening
behind the scenes.
Uses the same icon/color as "Checking" status.
Torrents in the `Moving` state are considered as "Active". This should
prevent accidental program exit from the user and inhibit system sleep.
2018-05-27 18:31:51 +03:00
Chocobo1
5df42420cb Retry saving settings when operation failed 2018-05-27 18:31:51 +03:00
Chocobo1
0ede11a1b7 Make settings file recovery more robust
We should not blindly remove the leftover settings file, as the following write()
operation could fail and the user would lost all settings.
We should try renaming it instead.
2018-05-27 18:31:51 +03:00
Chocobo1
7d9c282db9 Refactor SettingsStorage class
Make use of (i.e. returning) QFile::rename operation status
Make log message more verbose
Add const
Remove empty lines
Inline typedef
2018-05-27 18:31:51 +03:00
Chocobo1
bc0e0813a4 Enable more compiler warnings on linux 2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
f3aebb3001 Fix compilation with MinGW 2018-05-27 18:31:51 +03:00
thalieht
800f966df9 Use qt5 syntax for a few remaining SLOT() 2018-05-27 18:31:51 +03:00
thalieht
e33df4dd8c Clarify guidelines and fix some typos 2018-05-27 18:31:51 +03:00
thalieht
96d9d810fd Fix coding style 2018-05-27 18:31:51 +03:00
thalieht
8707a1bc86 Move some connect() from propertieswidget to their corresponding widget 2018-05-27 18:31:51 +03:00
thalieht
0c988a5fd4 Use qt5 connect() syntax 2018-05-27 18:31:51 +03:00
Chocobo1
b396ca771d Fix displayed tracker messages
Before this change, we were displaying debug messages constructed by
libtorrent, now we show messages returned by trackers.

Closes #8739.
2018-05-27 18:31:51 +03:00
Chocobo1
a37dfcf961 Refactor functions
Add const to variables
Remove debug messages
2018-05-27 18:31:51 +03:00
Chocobo1
31989740cd Comment out Werror flag in cmake script
Werror flag should be only enabled on developer's machine, not for
users using the product.
Also fix formatting.
2018-05-27 18:31:51 +03:00
Chocobo1
501191289b Print warning about cmake support status 2018-05-27 18:31:51 +03:00
Chocobo1
8971e92d78 Remove debug messages 2018-05-27 18:31:51 +03:00
Chocobo1
0c96e79d0d Refactor code
Remove forward declarations of Qt types.
Fix header include order.
2018-05-27 18:31:51 +03:00
Nick Korotysh
0704c0f5e6 Add missing "override" 2018-05-27 18:31:51 +03:00
thalieht
9cb190ebe7 Replace the zeroing of pointers with nullptr 2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
667f84995c Fix wrong API method names
Closes #8828.
2018-05-27 18:31:51 +03:00
Chocobo1
7a93fae6e4 Fix compile warnings on gcc 8
The warning was:
warning: catching polymorphic type ‘class std::exception’ by value
[-Wcatch-value=]
2018-05-27 18:31:51 +03:00
Chocobo1
0d6deca15c Revert commit
Apparently the translations were working in previous state, but affected by
lupdate issue:
https://github.com/qbittorrent/qBittorrent/issues/8220#issuecomment-385712673

The reverts commit fb698896c9.
Closes #8831.
2018-05-27 18:31:51 +03:00
Chocobo1
f54d7d46f2 Really fix translation in fspathedit
QT_TRANSLATE_NOOP3 is a macro, so we cannot use a runtime string for the context
argument.
Fix up 1d778676cd.
2018-05-27 18:31:51 +03:00
Chocobo1
8cf00ba5e1 Fix translation strings not found
The translation context doesn't exist, so the translations were not found, fixed
now.
Closes #8829.
2018-05-27 18:31:51 +03:00
Chocobo1
ecc9c6bbd9 Work around false-positive warning from lupdate
In short, lupdate will get confused when seeing `template <class T>`,
see: QTBUG-55478
2018-05-27 18:31:51 +03:00
Chocobo1
e11199f988 Fix usage of Q_DECLARE_TR_FUNCTIONS()
The context parameter shouldn't be enclosed in double quotes.
2018-05-27 18:31:51 +03:00
sledgehammer999
e9ed621178 Bump to 4.1.0 2018-05-05 00:55:42 +03:00
sledgehammer999
400743fc64 Update Changelog 2018-05-05 00:51:24 +03:00
sledgehammer999
ea8c57be23 Sync translations from Transifex and run lupdate 2018-05-05 00:39:47 +03:00
sledgehammer999
591cde53cf Merge pull request #8825 from sledgehammer999/fix_tabs
Add RSS/Log widgets to the QTabWidget on macOS
2018-05-04 23:59:07 +03:00
sledgehammer999
90bb67c654 Add RSS/Log widgets to the QTabWidget on macOS
Fixes commit a468c84b30
2018-05-04 19:56:42 +03:00
sledgehammer999
8f7fda492c Sync translations from Transifex and run lupdate
Closes #8220 #8169
2018-05-01 18:50:24 +03:00
sledgehammer999
f92d85c536 Merge pull request #8813 from Chocobo1/tr
Fix untranslated string
2018-05-01 17:59:49 +03:00
sledgehammer999
55c98d8706 Merge pull request #8811 from sledgehammer999/fix_RC_1_0
Fix compilation against libtorrent 1.0.x
2018-05-01 15:04:25 +03:00
sledgehammer999
6e94b03c13 Fix compilation against libtorrent 1.0.x
Closes #8798
2018-05-01 10:39:53 +03:00
Mike Tzou
e3a82d4614 Merge pull request #8347 from FranciscoPombal/new_contributing_guidelines
New CONTRIBUTING.md, based on the old one, Atom's and uBlock Origin's
2018-05-01 12:00:13 +08:00
Chocobo1
c61f641613 Fix untranslated string
Closes #8809.
2018-05-01 11:49:10 +08:00
sledgehammer999
b64a51337e Update Changelog 2018-04-28 10:33:32 +03:00
sledgehammer999
19dcf7851b Sync changelog entries from v4_0_x branch 2018-04-28 10:31:58 +03:00
sledgehammer999
fb346e15e8 Sync translations from Transifex and run lupdate 2018-04-27 02:04:37 +03:00
Mike Tzou
827d8c0dad Merge pull request #8748 from Chocobo1/header
Clarify header inclusion order
2018-04-26 23:41:58 +08:00
Mike Tzou
beef041e71 Merge pull request #8773 from Chocobo1/log
Fix path separator in log messages
2018-04-25 12:58:32 +08:00
Chocobo1
8b575484e6 Fix path separator in log messages 2018-04-24 01:02:54 +08:00
FranciscoPombal
d4b77a6541 Revise CONTRIBUTING.md
New version is based on old one, Atom's and uBlock Origin's.
2018-04-24 00:56:46 +08:00
sledgehammer999
4ba6334506 Update libtorrent bottle for Travis macOS 2018-04-22 22:42:23 +03:00
sledgehammer999
b78899cb9a Merge pull request #8724 from Chocobo1/rand
Use RNG provided by OS
2018-04-22 22:33:16 +03:00
Mike Tzou
0dec7b9f4f Merge pull request #8742 from tostercx/master
Add "Preserve file order" option to torrent creator. Closes #5652
2018-04-22 23:33:25 +08:00
Chocobo1
81a4f3ced0 Use RNG provided by OS
The general consensus is to use random facility provided by OS instead
of using other software random generators.
2018-04-20 23:34:46 +08:00
Vladimir Golovnev
b155b8609f Merge pull request #8767 from glassez/fix-legacy-api
Fix pauseAll/resumeAll legacy API methods. Closes #8766
2018-04-20 15:39:57 +03:00
Chocobo1
970ad7cf28 Sort filenames when creating torrent
First all dir paths are retrieved, then filenames in each path
are retrieved and sorted, then concatenate the sorted filenames together.
2018-04-20 14:35:48 +03:00
toster
c4625f50a8 Pass isAlignmentOptimized flag to piece size calculation 2018-04-20 14:31:20 +03:00
Vladimir Golovnev (Glassez)
001bd38557 Fix pauseAll/resumeAll legacy API methods
Closes #8766.
2018-04-20 14:30:25 +03:00
Mike Tzou
7aae915a68 Merge pull request #8754 from Chocobo1/fix
Fix memory leak
2018-04-19 11:42:01 +08:00
Chocobo1
5f1ac96f66 Clarify header inclusion order 2018-04-18 13:56:40 +08:00
Chocobo1
68c2d81072 Fix memory leak 2018-04-17 20:34:01 +08:00
Chocobo1
4dea03fc74 Remove unused constants 2018-04-17 20:29:43 +08:00
Mike Tzou
a70942ed53 Merge pull request #8598 from Piccirello/limit-share-ratio
WebUI Add Limit Share Ratio context menu option
2018-04-15 00:39:27 +08:00
Mike Tzou
7e8c72f424 Merge pull request #8732 from Chocobo1/rename
Fix renaming completed files
2018-04-15 00:39:00 +08:00
toster
e538eae726 Make alignment optimization optional
Disabling alignment optimization allows preserving file order in torrent
files and closes #5652
2018-04-14 06:46:41 +03:00
Chocobo1
898239a42e Fix renaming completed files
Check whether the file is already downloaded before appending QB_EXT to
filename.

Closes #8039.
2018-04-12 14:13:59 +08:00
Mike Tzou
1055cc0f45 Merge pull request #8691 from Chocobo1/js
Partially revert "Remove unused JavaScript library"
2018-04-12 00:07:37 +08:00
Thomas Piccirello
9f36b54b04 WebUI Add Limit Share Ratio context menu option
Closes #6815, #7602.
2018-04-11 23:45:54 +08:00
Thomas Piccirello
1f42ab8c4f Remove unused/superfluous variables 2018-04-11 23:45:54 +08:00
Thomas Piccirello
3f0fbc0810 WebUI rename property to match its definition 2018-04-11 23:45:54 +08:00
sledgehammer999
7e4b62c68d Merge pull request #8701 from Kolcha/musl-support
Allow to disable Stacktrace support
2018-04-11 17:10:01 +03:00
sledgehammer999
784b154228 Merge pull request #8721 from sledgehammer999/fix_string_arg
Fix wrong QString::arg() usage that leads to crash
2018-04-11 17:04:32 +03:00
sledgehammer999
ddba79ef3d Fix wrong QString::arg() usage that leads to crash
We need to be careful when using the multi-arg version of
QString::arg() and passing as 2nd, 3rd etc parameter an int.
It doesn't do the same as passing multiple QStrings.
2018-04-11 17:01:43 +03:00
Nick Korotysh
7712d0ada0 Allow to disable Stacktrace support
Enable backtrace stuff only if GNU C library used, because current
backtrace implementation based  on  <execinfo.h> , which is not a
part of standard C library, it is a GNU extension.

This will be usefull when building  with  custom POSIX-compilant C
library (like musl) and no <execinfo.h> available.

Note: configure script will detect presence of  <execinfo.h>  and
enable/disable feature depending on it.

Feature is enabled by default.
2018-04-10 20:51:11 +03:00
Mike Tzou
38837db8de Merge pull request #8699 from Chocobo1/linking
Add helper for loading Windows system functions
2018-04-11 00:13:55 +08:00
sledgehammer999
d997d887e5 Merge pull request #8650 from luis-pereira/fix-invalid-iterator-crash
Fix crashes due to invalid iterator use
2018-04-10 16:18:44 +03:00
sledgehammer999
341a971cd3 Merge pull request #8711 from sledgehammer999/recheck_paused
Avoid data corruption when rechecking paused torrents
2018-04-10 16:18:12 +03:00
Mike Tzou
fa380c8b2c Merge pull request #8622 from Chocobo1/formatter
Unify coding style for WebUI files
2018-04-10 14:51:32 +08:00
Luís Pereira
758c70283f Fix crashes due to invalid iterator use
Although the iterators are constant we are indirectly changing them.
Introduced by commit ac42ccb5e4.
Closes #8633
2018-04-09 23:40:08 +03:00
sledgehammer999
747c70a58e Avoid data corruption when rechecking paused torrents
Libtorrent can recheck only unpaused torrents. We get around this by
unpausing the torrent, issuing the recheck and pausing again after we
get alerted by libtorrent that the recheck has finished. This alert is
asyncronous. There is a small time frame where the program might start
downloading and writing data to the file before we pause it. This can
lead to data corruption if the file on disk is totally different that
the one expected by the torrent AND the file on disk is a valid file on
its own. OR in case the user points the new torrent to the wrong
directory by mistake.
To get around this the torrent is placed in upload_mode and out of
automanagement.
2018-04-09 23:25:52 +03:00
sledgehammer999
6ca2e42bca Merge pull request #8715 from glassez/max-ratio
Fix setting preferences via WebAPI. Closes #7335
2018-04-09 23:08:12 +03:00
Vladimir Golovnev (Glassez)
cb505a07fe Fix setting preferences via WebAPI
Closes #7335.
2018-04-09 18:54:43 +03:00
Chocobo1
5819b6dd39 Use Unicode version of InitiateSystemShutdown 2018-04-09 21:18:07 +08:00
Chocobo1
644e7d0450 Use dynamic linking for SetSuspendState function 2018-04-09 21:18:07 +08:00
Chocobo1
b0e3d77975 Add helper for loading Windows system functions 2018-04-09 21:18:04 +08:00
Chocobo1
643a209812 Sort include headers
Also add anonymous namespace.
2018-04-09 21:16:00 +08:00
Mike Tzou
c3311e83a0 Merge pull request #8687 from Chocobo1/folder
Stop creating Download folder on start
2018-04-09 13:20:48 +08:00
Mike Tzou
3301e9cb69 Merge pull request #8690 from Chocobo1/options
Avoid showing an empty row in AdvancedSettings
2018-04-08 13:14:21 +08:00
Chocobo1
cf2c0bd47e Apply formatting to Web UI files 2018-04-07 21:45:56 +08:00
Mike Tzou
df0c5c41c5 Merge pull request #8681 from dzmat/uncrutify_tinkering
Make uncrustify.cfg available to QtCreator IDE
2018-04-05 21:43:32 +08:00
Chocobo1
59e6757242 Avoid showing an empty row in AdvancedSettings
Fixup 543cbc6d1c.
2018-04-05 21:34:07 +08:00
Chocobo1
6bbcf9b3d6 Stop creating Download folder on start
The existence of this folder isn't required to run qbt and it can be
created when adding torrent.
Closes #8290.
2018-04-05 14:12:47 +08:00
Chocobo1
208d21ff73 Add js-beautify config
Try to standardize coding style for HTML & JavaScript via this tool
2018-04-05 12:19:54 +08:00
Chocobo1
2df71dbde5 Partially revert "Remove unused JavaScript library"
This reverts commit 470e993c2d.
2018-04-05 03:22:34 +08:00
Mike Tzou
9e4f246c89 Merge pull request #8672 from Chocobo1/js
Move JavaScript libraries to its own folder
2018-04-04 19:23:10 +08:00
Mike Tzou
e4fc8e4156 Merge pull request #8669 from Chocobo1/runext
Split args manually in runExternalProgram()
2018-04-03 22:19:29 +08:00
dzmat
883d4d81d5 Make uncrustify.cfg available to Qt Creator IDE 2018-04-03 18:35:28 +07:00
Mike Tzou
041b86981f Merge pull request #8665 from Chocobo1/iostream
Use lightweight printf instead of iostream
2018-04-02 20:17:12 +08:00
Chocobo1
470e993c2d Remove unused JavaScript library 2018-04-02 01:34:49 +08:00
Chocobo1
cbf10ebb7f Update clipboard.js to v2.0.0 2018-04-02 01:34:49 +08:00
Chocobo1
89f06274bb Move JavaScript libraries to its own folder 2018-04-02 01:34:43 +08:00
Chocobo1
c07cd440cd Split args manually in runExternalProgram()
Need to split arguments manually because QProcess::startDetached(QString)
will strip off empty parameters.
E.g. `python.exe "1" "" "3"` will become `python.exe "1" "3"`.
Closes #8454.
2018-04-01 18:42:42 +08:00
Mike Tzou
e90be67fec Merge pull request #8640 from Chocobo1/guide2
Clarify braces usages in CODING_GUIDELINES
2018-04-01 18:16:04 +08:00
Chocobo1
37ea01bd44 Use lightweight printf instead of iostream
Using iostream usually adds a lot of other operators (<<, endl), whereas
*printf takes only 1 function call.

Also use qUtf8Printable whenever possible.
2018-03-31 03:21:53 +08:00
Mike Tzou
ccc91e2e52 Merge pull request #8629 from Chocobo1/guide
Extend Coding Guidelines to cover other languages
2018-03-30 14:31:55 +08:00
Chocobo1
d31954761f Clarify braces usages in CODING_GUIDELINES
Merge "Curly braces" & "If blocks" sections into "New lines & curly braces" section.

Add note about the list is not exhaustive and style can be determine on code review.
2018-03-29 02:50:48 +08:00
Mike Tzou
aa122b062e Merge pull request #8615 from Chocobo1/watcher
Improve FS watcher
2018-03-27 14:34:08 +08:00
Chocobo1
65921eaf7b Remove QPointer wrapper 2018-03-25 15:53:31 +08:00
Chocobo1
bfbd978d3f Move helper function to Utils::Fs 2018-03-25 13:26:03 +08:00
Chocobo1
1876dbd523 Fix typo 2018-03-25 13:26:02 +08:00
Chocobo1
ea7eb7c0ec Add delay before processing FS changes
This prevents file renaming errors in monitored folder on linux, for
example: ABC.torrent.part -> ABC.torrent
2018-03-25 13:26:02 +08:00
Chocobo1
19c733ce95 Use specific name for rejected files 2018-03-25 13:26:02 +08:00
Chocobo1
2ba5dd1344 Reduce debug messages 2018-03-25 13:26:02 +08:00
Chocobo1
61eddfce90 Refactor functions in FileSystemWatcher
Use c++11 range-loop
Add const
Better ifdef placement
Inline functions
2018-03-25 13:26:02 +08:00
Chocobo1
0840556f77 Do cleanups in FileSystemWatcher
Use Qt5 connect syntax
Sort headers
Add license
Add anonymous namespace
Replace macro defines with const variables
2018-03-25 13:25:28 +08:00
Mike Tzou
f564e8a1c4 Merge pull request #8621 from Chocobo1/html5
Update WebUI to be more compliant with HTML5 standard
2018-03-24 22:41:31 +08:00
Chocobo1
315d9835b2 Extend Coding Guidelines to cover other languages 2018-03-23 15:21:50 +08:00
Chocobo1
ed03456999 Update WebUI to be more compliant with HTML5 standard
Use modern and shorter "charset" attribute.
Remove "type", "charset" attributes in script/style tags, these are redundant in HTML5.
2018-03-23 00:04:43 +08:00
Mike Tzou
e1a14007f8 Merge pull request #8618 from Piccirello/remove-css
Remove unused CSS from WebUI login page
2018-03-23 00:02:12 +08:00
Thomas Piccirello
a15cfae03a Fix spacing 2018-03-21 00:04:21 -04:00
Thomas Piccirello
c2a195360a Resolve JavaScript errors 2018-03-21 00:04:21 -04:00
Thomas Piccirello
a4f99995bb Consolidate CSS into style.css 2018-03-21 00:04:18 -04:00
Thomas Piccirello
16616f4e0e Remove unused CSS from WebUI login page 2018-03-20 15:25:04 -04:00
Vladimir Golovnev
a5294e1e08 Merge pull request #8558 from luis-pereira/containter-anti-pattern
Don't create temporary containers just to iterate over them
2018-03-19 13:06:01 +03:00
Vladimir Golovnev
a8dbff06a3 Merge pull request #8607 from glassez/rss
Process loaded RSS articles in case of parsing error
2018-03-19 09:35:30 +03:00
Vladimir Golovnev (Glassez)
d9cd5d4680 Resolve (X)HTML entities in RSS content
Many sites include various HTML entities in the content of RSS feeds.
The most of these entities are not declared in the underlying XML,
so the documents are considered by parser to be malformed.
This patch allows you to successfully parse such soft-malformed
RSS feeds.
Closes #8527.
Closes #8569.
2018-03-18 18:59:55 +03:00
Luís Pereira
ac42ccb5e4 Don't create temporary containers just to iterate over them
Stops temporary containers being created needlessly due to API misuse.
For example, it’s common for developers to assume QHash::values() and
QHash::keys() are free and abuse them, failing to realize their
implementation internally actually iterates the whole container, allocates
memory, and fills a new QList.

Added a removeIf generic algorithm, similar to std ones. We can't use std
algorithms with Qt dictionaries because Qt iterators have different
behavior from the std ones.

Found using clazy.
2018-03-18 16:22:12 +03:00
Mike Tzou
68ca95faf0 Merge pull request #8603 from Chocobo1/typo
Fix typo
2018-03-17 00:49:41 +08:00
Vladimir Golovnev (Glassez)
8d285c66aa Process loaded RSS articles in case of error
For some reason, the RSS feed may contain malformed XML data and it may not be
successfully parsed by the XML parser. We are still trying to load as many articles
as possible until we encounter corrupted data. So we can have some articles even in
case of parsing error.
Closes #8527.
Closes #8569.
2018-03-16 18:29:38 +03:00
Mike Tzou
1f28122428 Merge pull request #8595 from Chocobo1/runExt
Add Tags parameter to "Run External Program"
2018-03-16 19:37:34 +08:00
Mike Tzou
6ec179e0f7 Merge pull request #8594 from Chocobo1/ui
Properly align text label
2018-03-15 13:41:23 +08:00
Chocobo1
423511765a Fix typo 2018-03-14 23:37:08 +08:00
Vladimir Golovnev
c061d67b14 Merge pull request #8597 from Piccirello/fix
Use correct API method URL in WebUI
2018-03-14 15:19:00 +03:00
Thomas Piccirello
4863078744 Use correct API method URL in WebUI
Fix up 27d8dbf.
Closes #8596.
2018-03-14 03:08:46 -04:00
Chocobo1
88881de8c6 Add Tags parameter to "Run External Program"
Closes #8586.
Also sort headers.
2018-03-14 10:12:32 +08:00
Chocobo1
690c439ae6 Properly align text label 2018-03-14 00:35:20 +08:00
Mike Tzou
e78b5202bc Merge pull request #8585 from Chocobo1/lint
Fix compiler/clazy warnings
2018-03-13 22:36:10 +08:00
Vladimir Golovnev
c9be1d0a19 Merge pull request #8494 from paolo-sz/master
Fix for "Content" panel messed up
2018-03-13 16:54:05 +03:00
Vladimir Golovnev
3348eef423 Merge pull request #8488 from thalieht/fix
Move suffix-labels inside the corresponding spinboxes
2018-03-12 16:58:05 +03:00
Vladimir Golovnev
931af6c97e Merge pull request #8313 from Piccirello/search-categories
Calculate search categories based on selected plugin
2018-03-12 14:29:51 +03:00
Vladimir Golovnev
cea2948593 Merge pull request #8556 from Piccirello/compiler-warnings
Fix missing initializer warning during build
2018-03-12 14:28:38 +03:00
Chocobo1
a468c84b30 Fix warnings from unused variables 2018-03-12 14:36:28 +08:00
Thomas Piccirello
7278625f53 Calculate supported categories based on selected plugin 2018-03-12 01:33:45 -04:00
Thomas Piccirello
7b3e692f68 Fix missing initializer warning
This issue occurs when using gcc versions < 5.
2018-03-12 01:21:21 -04:00
Chocobo1
fdb0d97b28 Remove unused function 2018-03-11 23:27:04 +08:00
Chocobo1
08a2439f46 Check directly if container is empty or not 2018-03-11 23:12:16 +08:00
Chocobo1
6767487e40 Remove unused variable 2018-03-11 22:31:17 +08:00
Chocobo1
141a2d2856 Prevent detach from containers 2018-03-11 22:25:07 +08:00
thalieht
2eea57e609 Use spinbox suffix to display time unit 2018-03-11 12:08:00 +02:00
thalieht
0b185e347b Use spinbox suffix to display rate unit 2018-03-11 12:07:38 +02:00
thalieht
1e1db31ab5 Use unique layout names 2018-03-11 12:07:24 +02:00
Mike Tzou
7233274110 Merge pull request #8562 from Chocobo1/lint
Fix warnings from clazy
2018-03-11 12:41:58 +08:00
paolo-sz
d4e2b21534 Fix Content widget misbehavior
Starting from QT 5.10.1 Content widget is messed up and its settings are
lost while restarting.
Setting StretchLastSection property to false seems to solve the issue.
(Closes #8439).
2018-03-10 18:56:18 +01:00
Vladimir Golovnev
4f206f987a Merge pull request #8561 from glassez/tracker
Properly reply to announce request
2018-03-10 17:08:29 +03:00
Vladimir Golovnev (Glassez)
dfddda57b9 Properly reply to announce request 2018-03-09 17:41:06 +03:00
Mike Tzou
0cacd71503 Merge pull request #8403 from Piccirello/webui-download-height
Make WebUI iframe windows scrollable on iOS. Closes #8401, #7932.
2018-03-09 19:46:29 +08:00
Chocobo1
fdf3ebbb6c Remove usage of deprecated functions
Also use proper type for storing date/time data
2018-03-09 19:20:58 +08:00
Chocobo1
a3d9e457a0 Add context parameter in connect() 2018-03-09 13:44:17 +08:00
Chocobo1
ffb5c0635e Remove unused slot declaration for function 2018-03-09 01:50:23 +08:00
Chocobo1
b4f23d8154 Use faster code path
From Qt doc: Using this function is faster than using QFileInfo(file).exists() for
file system access.
2018-03-09 01:34:35 +08:00
Chocobo1
ed310c2dac Avoid temporary QString allocations
Fix up 0457fd260e
2018-03-09 01:34:35 +08:00
Chocobo1
50167d40d7 Allow ADL lookup for helper function 2018-03-09 01:34:19 +08:00
Mike Tzou
5261d4375f Merge pull request #8551 from Chocobo1/override
Fix warnings from linters
2018-03-09 00:36:52 +08:00
Thomas Piccirello
0b56cd5fa0 Make WebUI iframe windows scrollable on iOS
Closes #8401, #7932.
2018-03-08 01:30:13 -05:00
Vladimir Golovnev
e22946ef61 Merge pull request #8525 from glassez/url-query
Parse URL query string at application level
2018-03-07 17:16:21 +03:00
Chocobo1
0457fd260e Avoid temporary QString allocations
This fixes clazy warning: Use multi-arg instead [-Wclazy-qstring-arg]
2018-03-07 20:06:00 +08:00
Chocobo1
c60b7b213e Add missing 'override' specifier
This fixes clang warning:
'notify' overrides a member function but is not marked 'override'
[-Winconsistent-missing-override]
2018-03-07 20:05:52 +08:00
Mike Tzou
c759c4301e Merge pull request #8547 from Chocobo1/fix
Fix broken WebUI
2018-03-07 00:48:16 +08:00
Chocobo1
307736e263 Fix broken WebUI
Fix up c47e4efade.
Closes #8545.
2018-03-06 14:03:01 +08:00
Mike Tzou
7aa5bc4bc1 Merge pull request #8484 from Piccirello/improve-webui-stats
Improve WebUI stats dialog (addendum to #8349)
2018-03-06 00:49:49 +08:00
Thomas Piccirello
c47e4efade Save WebUI Statistics window size 2018-03-05 01:40:21 -05:00
Mike Tzou
b0781e820c Merge pull request #8531 from Chocobo1/https
Improve URL scheme handling
2018-03-05 01:28:27 +08:00
Vladimir Golovnev (Glassez)
1aca3b0adc Parse URL query string at application level 2018-03-04 17:08:48 +03:00
Chocobo1
20c4b0ee0c Use original scheme when downloading favicons
Previously was always using http, now we only drop back to http when
scheme is absent
2018-03-03 12:53:27 +08:00
Chocobo1
3df4a7ac2e Use https for documentation links 2018-03-03 12:43:59 +08:00
Vladimir Golovnev
efdeb81af1 Merge pull request #8374 from glassez/coding-style
Add Coding Style rules for commit messages
2018-03-02 18:05:25 +03:00
Vladimir Golovnev (Glassez)
34295a78f2 Move ByteArray utils into Utils::ByteArray namespace 2018-03-02 17:23:21 +03:00
Mike Tzou
57163612ff Merge pull request #8427 from Chocobo1/server2
Rewrite RequestParser
2018-03-02 16:07:12 +08:00
Tom Piccirello
1a9b009951 Enable Statistics window to be scrolled and resized
Text may go offscreen due to translations.
2018-03-02 02:18:42 -05:00
Vladimir Golovnev
9406b4b226 Merge pull request #8515 from glassez/webapi
Fix Legacy Web API to be fully available
2018-03-01 09:44:06 +03:00
Mike Tzou
38dc6ab8cf Merge pull request #8441 from Chocobo1/runExt
Revert back to QLineEdit for "Run external program". Closes #7800.
2018-03-01 13:23:42 +08:00
Mike Tzou
55c3db339b Merge pull request #8455 from Chocobo1/large_torrent
Fix loading very large torrents. Closes #8449
2018-03-01 13:22:43 +08:00
Vladimir Golovnev (Glassez)
34456a7459 Fix Legacy Web API to be fully available 2018-02-28 18:25:48 +03:00
Vladimir Golovnev
02b029abbe Merge pull request #8508 from luis-pereira/clang-cmake-support
Make it build when using Clang under CMake
2018-02-28 10:52:00 +03:00
Vladimir Golovnev
b26eb3d146 Merge pull request #8373 from glassez/search
Improve Search handling
2018-02-28 10:46:33 +03:00
Vladimir Golovnev
7cb6100c9c Merge pull request #8471 from luis-pereira/use-qstring-ref
Don't create temporary substrings
2018-02-28 10:44:59 +03:00
Vladimir Golovnev (Glassez)
ef06485c45 Add Coding Style rules for commit messages 2018-02-27 20:27:58 +03:00
sledgehammer999
1c2d9c1fe4 Merge pull request #8510 from adem4ik/patch-2
Fix typo in filelogger.cpp message
2018-02-27 17:38:52 +02:00
Mike Tzou
6f7f7d87c6 Merge pull request #8218 from Piccirello/webui-selection-bug
Reselect webui torrents after full_update. Temporary fix for #8209.
2018-02-27 13:33:39 +08:00
Andrei Stepanov
817aadd52d Fix typo in filelogger.cpp message 2018-02-27 02:00:43 +04:00
Luís Pereira
058bad0af3 Make it build when using Clang under CMake
The pair Clang/qmake builds.
CMake compiler settings are more strict and it causes clang build to fail.
2018-02-26 19:53:39 +00:00
Luís Pereira
0e421ae415 Don't create temporary substrings
Avoid temporary string allocations. They are only used to convert to
something else.
QString::xxxRef() returns a QStringRef. QStringRef avoids the memory
allocation and reference counting overhead of a standard QString by simply
referencing a part of the original string.
2018-02-26 11:39:36 +00:00
Thomas Piccirello
2227c3afc1 Reselect torrents in WebUI after full update
Temp fix for #8209.
2018-02-25 01:09:06 -05:00
Mike Tzou
050af8a793 Merge pull request #7894 from Piccirello/auto-management
Disable options when Force Proxy is enabled
2018-02-25 01:44:58 +08:00
Vladimir Golovnev
6207855f3b Merge pull request #8372 from thalieht/inactiverate
Expose the libtorrent fields for "dont_count_slow_torrents" to GUI.
Closes #5713.
2018-02-24 14:13:39 +03:00
Vladimir Golovnev
a65a70ab48 Merge pull request #8479 from thalieht/ratioLimitsCrash
Fix possible crash when using both share limits
2018-02-24 14:11:09 +03:00
Thomas Piccirello
4110bb874f Right align stat values 2018-02-23 14:54:31 -05:00
Thomas Piccirello
5c74f374af Re-order and rename stats 2018-02-23 14:54:24 -05:00
Thomas Piccirello
a8420a43f9 Format Read cache hits as percentage 2018-02-23 14:46:47 -05:00
Vladimir Golovnev (Glassez)
279bce2014 Make SearchManager singleton 2018-02-23 20:26:32 +03:00
Vladimir Golovnev (Glassez)
f3d370870d Improve Search handling
Legacy SearchEngine class really has three roles:
  1. Manage search plugins,
  2. Handle the search job, and
  3. Handle the download of the torrent file using the search plugin.
Now it is splitted into 3 classes: SearchManager, SearchHandler and
SearchDownloadHandler.
Search GUI is also improved.
2018-02-23 20:15:25 +03:00
thalieht
0e30659c26 Fix possible crash when using both share limits
Avoid possible crash in "torrent->name()" when processing seeding time of the torrent that already reached the ratio limit.
2018-02-23 17:13:56 +02:00
Chocobo1
f34dfca5e6 Enable Http/1.1 persistence connection
This enables reusing existing TCP connection instead of opening a new connection
for every request
2018-02-23 14:46:22 +08:00
Chocobo1
cec68c3fd7 Rewrite RequestParser
* Add more checks and also more strict checks for invalid conditions
* Add http version field
* Raise max request size to 64 MB
* Add author in license
* Use Qt5 new connect syntax
2018-02-23 14:46:17 +08:00
Vladimir Golovnev
5c2f698cb4 Merge pull request #8325 from luis-pereira/prevent-c++11-range-loop-detach
Prevent possible c++11 range-loop container detach
2018-02-22 16:28:04 +03:00
Chocobo1
f5fc2d52b8 Fix loading very large torrents. Closes #8449.
`torrent_info` constructor has default limits that can't be changed via
parameters, so we handle the loading process manually and explicitly
specifiy the limits to `bdecode()`.
The token_limit is also changed to 10000000.
2018-02-22 18:52:10 +08:00
Mike Tzou
edef85fa3e Merge pull request #8456 from vit9696/patch-1
Fix compilation with Qt 5.11 on macOS
2018-02-21 23:00:55 +08:00
Mike Tzou
6244ad5fa8 Merge pull request #8458 from luis-pereira/qgetenv
Use qEnvironmentVariableIsEmpty
2018-02-21 23:00:30 +08:00
Chocobo1
aba23f67a0 Revert back to QLineEdit for "Run external program". Closes #7800
1. Using FileSystemPathEdit is not entirely correct, as it only always
shows false warnings when parameters are present.
2. FileSystemPathEdit::selectedPath() modifies the path to unix format,
in this specific case, we need to faithfully execute what user inputted.
3. Given the above it is reasonable to revert back to QLineEdit, as it
is just sufficient in functionality and doesn't modifiy the inputs.
2018-02-21 10:16:32 +08:00
Luís Pereira
1a913c502b Prevent possible c++11 range-loop container detach
Explicit or implicit calls to begin() and end() cause a non-const
container to detach from shared data, ie. to perform a deep-copy to gain
a unique copy of the data.
That can be a expensive although unneeded operation.

In order to assist the developer a copyAsConst function is added.
copyAsConst returns a const copy of the object.

For lvalues just use qAsConst. It's only available on Qt 5.7.0. But we
added also for earlier versions. The developer can always use qAsConst.

Intended uses:

    QString s = ...;
    for (const auto &ch : qAsConst(s))
          process(ch);

    for (const auto &ch : copyAsConst(funcReturningQString()))
        process(ch);
2018-02-20 19:28:51 +00:00
Vladimir Golovnev
078982ada6 Merge pull request #8424 from glassez/fix-rss
Disable Auto TMM when RSS rule has save path. Closes #8411
2018-02-20 11:13:15 +03:00
Vladimir Golovnev
3035184d25 Merge pull request #8445 from glassez/fix-webapi
Fix POST params handling. Closes #8443
2018-02-20 11:11:33 +03:00
Thomas Piccirello
fccdc7ebdc Remove extra space 2018-02-20 02:22:40 -05:00
Thomas Piccirello
e0c74c2d39 Remove conditionals 2018-02-20 02:22:40 -05:00
Thomas Piccirello
288f372914 Rename onClick property to onclick 2018-02-20 02:16:16 -05:00
Thomas Piccirello
ba331436fa Add More Information link 2018-02-20 02:16:16 -05:00
Thomas Piccirello
afd4069eb4 Disable options when force proxy is enabled 2018-02-20 02:16:15 -05:00
Vladimir Golovnev
387f9b1230 Merge pull request #8438 from Piccirello/webui-proxy-only
Add "Use proxy only for torrents" option to webui
2018-02-20 09:06:30 +03:00
Luís Pereira
2114817890 Use qEnvironmentVariableIsEmpty
Instead of qgetenv("QT_AUTO_SCREEN_SCALE_FACTOR").isEmpty().
It's faster (don't allocate memory) and don't throw exceptions.
2018-02-19 21:35:23 +00:00
vit9696
dac2ab5409 Fix compilation with Qt 5.11 on macOS 2018-02-19 22:39:25 +03:00
Mike Tzou
b87ca60c5a Merge pull request #8134 from Piccirello/webui-show-status-bar
Add option to show/hide webui status bar
2018-02-20 00:09:09 +08:00
Mike Tzou
6d44075662 Merge pull request #8228 from Piccirello/webui-save-window-size
WebUI Save user's resized windows
2018-02-20 00:02:32 +08:00
Thomas Piccirello
69af205094 Use .each(). Refactor conditionals. 2018-02-18 23:54:48 -05:00
Thomas Piccirello
8a2e3f5d93 Add option to show/hide webui status bar 2018-02-18 23:46:27 -05:00
Thomas Piccirello
3f79726ab9 Make download + upload windows resizable 2018-02-18 22:50:21 -05:00
Thomas Piccirello
d1c4b1599a WebUI Save user's resized window sizes 2018-02-18 22:50:21 -05:00
Vladimir Golovnev (Glassez)
a0842a1e68 Don't convert POST parameter names to lower-case 2018-02-18 19:57:48 +03:00
Vladimir Golovnev (Glassez)
29042e4841 Fix wrong WebAPI param name 2018-02-18 19:54:08 +03:00
Vladimir Golovnev
3e2cfb5136 Merge pull request #8409 from luis-pereira/master
Don't implicitly cast iterator to const_iterator
2018-02-18 18:21:50 +03:00
Thomas Piccirello
0d55599e02 Add "Use proxy only for torrents" option to webui 2018-02-17 21:25:42 -05:00
Luís Pereira
ea1b0b26b1 Don't implicitly cast iterator to const_iterator
It prevents detachments:
To illustrate:

QMap<QString, QString> map;
/* code compiles and works fine but find() returns the non-const
   QMap::iterator that detaches!
*/
QMap<QString, QString>::const_iterator it = map.find("girish");

but also some subtle bugs:

QHash<int, int> wrong;
if (wrong.find(1) == wrong.cend()) {
    qDebug() << "Not found";
} else {
    /* find() detached the container before cend() was called, so it
       prints "Found"
    */
    qDebug() << "Found";
}

QHash<int, int> right;
if (right.constFind(1) == right.cend()) {
    qDebug() << "Not found"; // This is correct now !
} else {
    qDebug() << "Found";
}

Enforced by QT_STRICT_ITERATORS definition.
2018-02-17 17:02:52 +00:00
Vladimir Golovnev (Glassez)
176b2eb18b Disable Auto TMM when RSS rule has save path
Closes #8411.
2018-02-16 14:02:01 +03:00
Vladimir Golovnev
98a1c111b9 Merge pull request #5287 from elFarto/master
Implement RSS Smart Filter
2018-02-16 13:43:38 +03:00
Mike Tzou
47048d8410 Merge pull request #8349 from Chocobo1/stats
Improve stats dialog
2018-02-16 15:31:01 +08:00
Mike Tzou
882fa7ecd4 Merge pull request #8336 from Chocobo1/coalesce
Add "Coalesce reads & writes" checkbox in advanced options
2018-02-16 15:30:17 +08:00
Vladimir Golovnev
d07ece53e6 Merge pull request #7610 from glassez/webapi2
Redesign Web API
2018-02-16 10:09:35 +03:00
Vladimir Golovnev
afd2f6ba14 Merge pull request #8344 from FranciscoPombal/master
Fixed typo in function name isSplashScreenDisabled()
2018-02-16 09:55:37 +03:00
Vladimir Golovnev
226b0d4194 Merge pull request #8398 from luis-pereira/no-qdeleteall-on-temporaries
Don't use qDeleteAll() on temporaries
2018-02-16 09:53:41 +03:00
Luís Pereira
44e4b5d238 Don't use qDeleteAll() on temporaries
qDeleteAll() is being used on an unnecessary temporary container created
by QHash::values().
Using qDeleteAll(mycontainer) instead.
2018-02-12 16:36:03 +00:00
sledgehammer999
c59d2575c8 Sync translations from Transifex and run lupdate. 2018-02-09 21:14:12 +02:00
thalieht
f50b4724a6 Expose the libtorrent fields for "dont_count_slow_torrents" to GUI:
inactive_down_rate
inactive_up_rate
auto_manage_startup
2018-02-08 14:14:39 +02:00
Stephen Dawkins
48cbccff1e Made smart episode filter regular expression configurable 2018-02-05 19:23:11 +00:00
Chocobo1
e31ec20ec4 Clarify some terms in stats dialog
Reorder list
2018-02-02 23:41:42 +08:00
Chocobo1
b9ec216aa5 Redefine CacheStatus.readRatio field.
Now it is defined as:
CacheStatus.readRatio = (blocks read from cache) / (blocks read from disk + blocks read from cache)
The 2 variables in denominator are counted separately and the formula before this change doesn't really make sense

Add percentage sign to "Read cache hits" stats
Also remove redundant header include
2018-02-02 23:41:42 +08:00
FranciscoPombal
2ac3004762 Fixed typo in function name isSplashScreenDisabled() 2018-01-31 12:05:41 +00:00
Chocobo1
543cbc6d1c Add "Coalesce reads & writes" checkbox in advanced options
The setting is defaulted to ON for Windows. Closes #8295.
2018-01-30 22:46:14 +08:00
Vladimir Golovnev (Glassez)
27d8dbf13b Redesign Web API
Normalize Web API method names.
Allow to use alternative Web UI.
Switch Web API version to standard form (i.e. "2.0").
Improve Web UI translation code.
Retranslate changed files.
Add Web API for RSS subsystem.
2018-01-28 19:16:24 +03:00
sledgehammer999
e487b31877 Merge pull request #8319 from sledgehammer999/saner_log_settings
Set default file log size to 65 KiB and delete backup logs older than…
2018-01-27 15:26:03 +02:00
Stephen Dawkins
2845a791d0 Initial implementation of Smart Filter feature 2018-01-27 09:14:36 +00:00
sledgehammer999
024df8c53f Set default file log size to 65 KiB and delete backup logs older than 1 month. 2018-01-27 01:17:50 +02:00
sledgehammer999
12d97475da Merge pull request #8321 from luis-pereira/remove-duplicate-set-app-name
Don't set application name twice
2018-01-25 21:41:46 +02:00
Luís Pereira
5154d431f6 Don't set application name twice
It's an artifact introduced by commit b3c73b7868.
2018-01-25 16:30:11 +00:00
Vladimir Golovnev (Glassez)
0fc1ad664f Implement Qt wrapper for std::runtime_error 2018-01-23 11:08:41 +03:00
Vladimir Golovnev (Glassez)
bb683bd393 Switch built-in Web UI html to HTML5 2018-01-23 11:08:37 +03:00
Vladimir Golovnev (Glassez)
69df8174b9 Allow to load TorrentInfo from data buffer 2018-01-23 11:08:32 +03:00
Vladimir Golovnev
56ccf28000 Merge pull request #8133 from Piccirello/webui-statistics-format
WebUI Statistics parity with GUI
2018-01-23 10:15:39 +03:00
Vladimir Golovnev
0a45fc9ffe Merge pull request #7990 from Piccirello/subnet-whitelist-refactor
Refactor ip subnet whitelist
2018-01-23 10:03:00 +03:00
Mike Tzou
a56262401b Merge pull request #8304 from Piccirello/webui-torrent-status
Remove default case, fix #8302
2018-01-23 12:28:22 +08:00
Tom Piccirello
ebea0d91af Remove default case, fix #8302 2018-01-22 02:05:41 -05:00
Vladimir Golovnev
d6cea2f76d Merge pull request #8301 from glassez/clear-settings
Remove legacy and corrupted RSS settings. Closes #8278
2018-01-21 20:42:26 +03:00
Vladimir Golovnev
4386fd9f89 Merge pull request #8292 from glassez/coding-style
Require '#pragma once' in new code
2018-01-21 20:05:42 +03:00
Vladimir Golovnev (Glassez)
1c18edac76 Remove legacy and corrupted RSS settings 2018-01-21 20:01:56 +03:00
Vladimir Golovnev (Glassez)
247b93e8ec Require '#pragma once' in new code 2018-01-20 12:10:21 +03:00
sledgehammer999
6470f9acb9 Merge pull request #8286 from Piccirello/webui-torrent-status
Match webui statuses to gui: add default case (addendum to #8269)
2018-01-19 15:36:55 +02:00
Thomas Piccirello
65e0aa6b82 Add default case 2018-01-18 23:30:19 -05:00
sledgehammer999
53cc8e1115 Revert "Remove examples from gpl.html. Closes #7749."
The GPL folks are a bit overzealous. See https://www.gnu.org/licenses/gpl-faq.html#GPLOmitPreamble

This reverts commit 5cf4f00824.
2018-01-18 16:25:38 +02:00
sledgehammer999
72b8ec8f3b Sync translations from Transifex and run lupdate. 2018-01-18 16:18:44 +02:00
sledgehammer999
29e24232ad Merge pull request #8269 from Piccirello/webui-torrent-status
Match webui statuses to gui, closes #7516
2018-01-18 16:11:24 +02:00
Thomas Piccirello
6d0cceca83 Use switch statement 2018-01-18 00:15:13 -05:00
Thomas Piccirello
8e9b928b61 Match webui statuses to gui, closes #7516 2018-01-18 00:15:12 -05:00
sledgehammer999
df81e84fc2 Merge pull request #8271 from Piccirello/gui-search-separators
Only add Search combobox separators as needed
2018-01-18 01:25:38 +02:00
Tom Piccirello
e6a1b72354 Only add search separators as needed 2018-01-16 00:22:51 -05:00
Mike Tzou
e48b97466c Merge pull request #8199 from winneon/reannounce
transferlist: added a force reannounce option
2018-01-10 18:48:41 +08:00
Mike Tzou
84b9929025 Merge pull request #8240 from Chocobo1/size
Torrent creator: raise maximum piece size to 32 MiB
2018-01-10 13:28:51 +08:00
Chocobo1
5c50dba9e1 Torrent creator: raise maximum piece size to 32 MiB 2018-01-09 13:04:44 +08:00
Mike Tzou
55b9b8fc91 Merge pull request #8234 from Chocobo1/tr
Fix translation context.
2018-01-08 15:04:42 +08:00
Chocobo1
fb698896c9 Fix translation context.
Partially addresses #8220.

Also sort include headers
2018-01-07 23:01:22 +08:00
sledgehammer999
95c32221a2 Update copyright year. 2018-01-06 02:23:09 +02:00
sledgehammer999
230fc8e11e Merge pull request #8216 from Chocobo1/i18n
Fix translation context. Closes #8211.
2018-01-05 16:18:11 +02:00
Thomas Piccirello
9b919b6c34 Add missing units 2018-01-05 02:48:41 -05:00
Thomas Piccirello
49d3b7bf30 Right-align stat values 2018-01-05 02:48:41 -05:00
Chocobo1
1d778676cd Fix translation context. Closes #8211. 2018-01-05 12:07:50 +08:00
Jesse Bryan
e887b3106f transferlist: added a force reannounce option. closes #6448. 2018-01-03 16:48:31 -06:00
sledgehammer999
be5600dae2 Update configure version info. 2018-01-03 23:18:00 +02:00
sledgehammer999
686fb701bf Update libtorrent bottle for Travis. 2018-01-03 22:41:54 +02:00
Mike Tzou
a73c4d57b1 Merge pull request #8136 from Chocobo1/pri
Sort filename lists in .pri files
2018-01-03 23:53:50 +08:00
sledgehammer999
e6ce1dd0b0 configure: Parse all compiler related flags together. 2018-01-03 01:16:39 +02:00
sledgehammer999
25ab660c14 Fix splitting of compiler flags in configure.
Autoconf removes a set of [] during script translation, resulting in a wrong sed command.
2018-01-02 18:15:49 +02:00
sledgehammer999
38d3eea6ee Merge pull request #8185 from sledgehammer999/fix_status_state
Fix constant status of '[F] Downloading'. Closes #7628.
2018-01-02 18:13:10 +02:00
sledgehammer999
13f69a2245 Fix constant status of '[F] Downloading'. Closes #7628. 2018-01-02 18:09:48 +02:00
Chocobo1
ec337a8a84 Sort filename lists in .pri files 2017-12-31 11:53:45 +08:00
Mike Tzou
267362a7a0 Merge pull request #7876 from Chocobo1/optionIcons
Fix gui issues on high DPI monitor
2017-12-31 11:42:55 +08:00
Mike Tzou
11f26bfefd Merge pull request #7878 from Chocobo1/runExt
Revert "Run external program" function
2017-12-28 21:26:53 +08:00
Vladimir Golovnev
87c3f5163e Merge pull request #8141 from glassez/fix-rss
Don't process new/updated RSS rules when disabled
2017-12-28 09:08:31 +03:00
Vladimir Golovnev (Glassez)
22bdf98617 Don't process new/updated RSS rules when disabled 2017-12-27 20:01:40 +03:00
sledgehammer999
e5001e8f40 Merge pull request #8132 from Piccirello/use-https
Use https for www.qbittorrent.org
2017-12-27 02:10:49 +02:00
Thomas Piccirello
ddd6c82dd7 Use https for www.qbittorrent.org 2017-12-26 18:22:03 -05:00
Vladimir Golovnev
155dc49c5a Merge pull request #7914 from Piccirello/webui-columns
Webui add torrent columns to match gui
2017-12-26 22:03:07 +03:00
Chocobo1
c2c0dd2717 Fix column size too narrow on resize
Instead of giving a value, just resize to the content size
2017-12-24 21:54:56 +08:00
Chocobo1
27cf98a962 Resize dialog size on high DPI monitors 2017-12-24 21:54:56 +08:00
Chocobo1
aaaa67050c Fix gui issues on high DPI monitor
Fix LineEdit widget size issues
Up-scale the icons on statusbar
Up-scale the icons in options dialog. Closes #7729.
Fix small icons in cookie manager
Fix progress bar height
Fix small icons in confirm delete dialog
Fix small icons in options dialog
Fix small images in about dialog
2017-12-24 21:47:46 +08:00
Chocobo1
52ae118e3c Tweak spacing 2017-12-24 21:47:46 +08:00
Chocobo1
cb929f7e59 Cleanup
Use Qt5 connect syntax
Reorder include headers
2017-12-24 21:47:44 +08:00
sledgehammer999
94b64884f8 Merge pull request #7997 from Piccirello/webui-content-columns
Add "Remaining" and "Availability" columns to webui Content tab
2017-12-23 20:32:46 +02:00
sledgehammer999
8a590c7472 Merge pull request #8054 from hannsen/master
search only when category is supported by plugin
2017-12-23 20:24:06 +02:00
sledgehammer999
b11c33b2d9 Merge pull request #8068 from thalieht/readableFlags
Make peer information flags in peerlist more readable
2017-12-23 19:33:19 +02:00
sledgehammer999
eb201003ee Merge pull request #7974 from sledgehammer999/fix_limit_application
Fix application of speed limits on LAN and μTP connections.
2017-12-23 19:20:32 +02:00
sledgehammer999
cf9bad03aa Fix application of speed limits on LAN and μTP connections. Closes #7745. 2017-12-23 19:19:08 +02:00
sledgehammer999
c5127d2eec Merge pull request #8091 from sledgehammer999/fix_natural_sort
Fix natural sorting
2017-12-23 19:16:29 +02:00
sledgehammer999
0a35adbdba Merge pull request #8087 from sledgehammer999/fix_flag_sorting
Fix sorting of country flags column in Peers tab.
2017-12-23 19:15:44 +02:00
sledgehammer999
38d68d9d97 Merge pull request #8103 from glassez/fix-8094
Fix RSS rule updated when deleting. Closes #8094
2017-12-23 19:09:59 +02:00
sledgehammer999
8494c6c5d4 Merge pull request #8003 from Chocobo1/fileicon
Use standard folder icon for open file behavior on Windows
2017-12-23 19:09:05 +02:00
sledgehammer999
cbfdb7df56 Merge pull request #8033 from vit9696/cmdw
Fix CMD+W not closing the main window
2017-12-23 19:07:51 +02:00
sledgehammer999
ea44923cce Merge pull request #8032 from vit9696/fopen
Fix torrent file selection in Finder on mac
2017-12-23 19:03:33 +02:00
Vladimir Golovnev (Glassez)
e75f8603b0 Fix RSS rule updated when deleting
Closes #8094
2017-12-23 16:25:09 +03:00
sledgehammer999
5437974b85 Fix natural sorting when the common part of 2 strings ends partially in a number which continues in the uncommon part.
Closes #8080 #6732.
2017-12-21 17:00:37 +02:00
sledgehammer999
99abc21dab Simplify sorting code. 2017-12-21 15:26:38 +02:00
sledgehammer999
5156399c68 Fix sorting of country flags column in Peers tab. 2017-12-21 15:21:53 +02:00
Mike Tzou
c8a5ef8c5d Merge pull request #7985 from Chocobo1/source
Add source field in Torrent creator
2017-12-21 20:26:38 +08:00
thalieht
5b52835377 Make peer information flags in peerlist more readable 2017-12-20 11:22:23 +02:00
Mike Tzou
b8277614ec Merge pull request #8066 from Chocobo1/url
WebUI: Only prepend scheme when it is not present. Closes #8057.
2017-12-19 22:43:03 +08:00
Chocobo1
fb6bdbefd5 WebUI: Only prepend scheme when it is not present. Closes #8057. 2017-12-18 14:12:31 +08:00
sledgehammer999
53c33317f9 Sync translations from Transifex and run lupdate. 2017-12-17 23:14:53 +02:00
jan.karberg
d534973650 search only when category is supported by plugin Closes #8053 2017-12-17 13:04:37 +01:00
vit9696
ed154d35ba Fix Finder reveal in preview and torrent contents 2017-12-17 02:16:36 +03:00
vit9696
ff7e5da6de Fix cmd+w not closing the main window on macOS 2017-12-13 13:30:40 +03:00
vit9696
d7fa5b6b6b Put macOS specific functions to MacUtils namespace 2017-12-12 20:53:20 +03:00
vit9696
d57bd62add Fix torrent file selection in Finder on mac 2017-12-12 20:53:20 +03:00
Thomas Piccirello
0f6dff6315 Make value formatting consistent with GUI 2017-12-12 01:25:06 -05:00
Thomas Piccirello
97b4e4a3d3 Add "Remaining" and "Availability" columns to webui Content tab 2017-12-12 01:25:06 -05:00
Vladimir Golovnev
84c84160fd Merge pull request #8008 from glassez/fix-ipv6
Fix WebUI is not reachable via IPv6
2017-12-11 07:58:48 +03:00
sledgehammer999
60c9926834 Merge pull request #8005 from Chocobo1/helpbutton
Disable the "?" help button in all dialogs on Windows
2017-12-11 03:29:31 +02:00
Vladimir Golovnev (Glassez)
fcde1ba09c Fix WebUI is not reachable via IPv6 2017-12-09 09:57:19 +03:00
Chocobo1
8dcf326576 Add source field in Torrent creator. Closes #7965.
This field is often used for cross-seeding between (private) trackers.
2017-12-09 00:39:50 +08:00
Chocobo1
22b0ebb5a8 Disable the "?" help button in all dialogs on Windows. Closes #7365. 2017-12-08 12:51:06 +08:00
Chocobo1
c5d99a12f3 Use standard folder icon for open file behavior on Windows. Closes #7880. 2017-12-08 09:15:44 +08:00
Thomas Piccirello
240f5b6718 Remove invalid subnets directly from list 2017-12-06 20:32:50 -05:00
Thomas Piccirello
d184bd8c82 Perform ip string validation inside setWebUiAuthSubnetWhitelist 2017-12-06 02:05:33 -05:00
Thomas Piccirello
98a2dedb32 Separate subnet whitelist options into two lines 2017-12-06 02:05:32 -05:00
Chocobo1
c405cb2f1c Add struct TorrentCreatorParams for passing parameters
Filter out continuous newlines in Trackers field
Avoid adding empty url seed entries

Cleanup:
  Replace boost::bind
  Add const
  Use nullptr
  Use QString::SkipEmptyParts
  Rename variables
  Throw proper exception type
2017-12-06 01:56:36 +08:00
sledgehammer999
5ea100352e Merge pull request #7958 from Chocobo1/fixsort
Fix crash in #7952
2017-12-04 22:58:22 +02:00
Chocobo1
86c5a8df75 Partial revert eac8838dc2. Fixes #7952.
mapFromSource() didn't work as expected, when used in lessThan(), it sometimes
returns an invalid QModelIndex.
A crash is observed when filtering source model via filterAcceptsRow() in #7952,
the crash is due to endless recursive of filterAcceptsRow() & lessThan() calling
each other and mapFromSource() is the culprit of it.
2017-12-04 17:40:44 +08:00
Thomas Piccirello
a05562cdc5 Add Time Active column 2017-12-03 15:01:35 -05:00
Thomas Piccirello
ee37f1db3d Add Tags columns 2017-12-03 15:01:35 -05:00
sledgehammer999
c9720cad81 Merge pull request #7915 from Chocobo1/dragndrop
Allow to drag-n-drop URLs into mainwindow to initiate download
2017-12-02 20:35:47 +02:00
sledgehammer999
2124ef261a Merge pull request #7964 from Chocobo1/typeError
[WebUI] Fix logout behavior
2017-12-02 14:23:38 +02:00
sledgehammer999
aae6030064 Merge pull request #7963 from Chocobo1/logo
Fix missing qbt logo on login page in webUI. Closes #7953.
2017-12-02 14:22:43 +02:00
Chocobo1
b234fcec9c [WebUI] Use POST for logout command
This is to avoid browser being smart to prefetch the link then logging
out the user.
2017-12-02 14:32:40 +08:00
Chocobo1
1a45145c1e [WebUI] Add check to avoid type error after logout 2017-12-02 14:32:40 +08:00
Chocobo1
c1a282aa7b Fix missing qbt logo on login page in webUI. Closes #7953. 2017-12-02 14:31:48 +08:00
sledgehammer999
e23c5614b6 Add height padding to the transfer list icons. Closes #7951. 2017-12-02 00:50:40 +02:00
sledgehammer999
f457937980 Sync translations from Transifex and run lupdate. 2017-12-01 01:44:24 +02:00
Mike Tzou
eac8838dc2 [GUI] Implement stable sort (#7703)
* NaturalCompare now returns compare result instead of "less than" result
* Change to stable sort in GUI components
* Add Utils::String::naturalLessThan() helper function
* Use Qt::CaseSensitivity type
2017-11-30 17:10:30 +08:00
Mike Tzou
74d281526b Merge pull request #7647 from thalieht/style
Coding style for many files
2017-11-30 17:09:18 +08:00
sledgehammer999
7a8128eec4 Merge pull request #7858 from sledgehammer999/IpFilter_log
Stop logging IP filter parsing errors after a while.
2017-11-29 19:44:43 +02:00
sledgehammer999
a55be5e58f Stop logging IP filter parsing errors after a while.
When a lot of errors happen the resulting log lines introduce
a huge slowdown of the GUI, due to writing each log line to disk.

Closes #7755.
2017-11-29 15:49:59 +02:00
sledgehammer999
4c317f1e4a Merge pull request #7852 from surfernsk/master
Fix i386 build (configure). Closes #7845
2017-11-27 19:12:08 +02:00
sledgehammer999
48c46dc79a Fix crash on some systems when creating address object for 255.255.255.255
Closes #7735.
2017-11-27 19:06:37 +02:00
Chocobo1
b9339bb727 Allow to drag-n-drop URLs into mainwindow to initiate download
Fix issue: https://github.com/qbittorrent/qBittorrent/issues/7785#issuecomment-347092418
Minor refactor
2017-11-27 16:45:55 +08:00
Thomas Piccirello
e1f8e6aa6f Reposition Total Size column to match gui 2017-11-26 19:37:20 -05:00
Chocobo1
76c95d8c6c Revert "Run external program" function
This revert df95efe33e partially
2017-11-25 15:48:29 +08:00
Vladimir Golovnev
a7da714b13 Merge pull request #7832 from glassez/rss-import
Implement Import/Export RSS rules. Closes #7721
2017-11-25 10:35:24 +03:00
Vladimir Golovnev (Glassez)
916cfcdb03 Implement Import/Export RSS rules in JSON format 2017-11-24 21:20:44 +03:00
Vladimir Golovnev (Glassez)
b8fc415870 Implement Import/Export RSS rules in legacy format 2017-11-24 16:19:16 +03:00
Evgeny Lensky
428cb9c986 Fix i386 build (configure)
Fix building on i686 fails with wrong multilib library path #7845

and rebregenerate ./configure
2017-11-24 10:28:03 +07:00
sledgehammer999
99341409f4 Remove examples from gpl.html. Closes #7749. 2017-11-24 02:03:29 +02:00
Mike Tzou
f07333acc9 Merge pull request #7576 from TheNicker/master
Fixed blurry text under windows by setting DPI awareness to default
2017-11-23 20:43:26 +08:00
Vladimir Golovnev
342f5f1a09 Merge pull request #7821 from glassez/fix-rss
Fix RSS Parser. Closes #7751, #7763, #7768, #7786
2017-11-23 14:35:42 +03:00
sledgehammer999
d74efd839f Merge pull request #7826 from Chocobo1/tcp
Change MixedModeAlgorithm default to TCP. Closes #7779.
2017-11-23 01:53:29 +02:00
Heiko Becker
af898e9117 Fix build with --disable-webui
"app/application.cpp:108:7: error: class 'Application' does not have
any field named 'm_webui'"
2017-11-23 01:52:38 +02:00
Vladimir Golovnev (Glassez)
c0e48627ae Fix RSS Parser
Closes #7751
Closes #7763
Closes #7768
Closes #7786
2017-11-22 19:11:37 +03:00
Chocobo1
534ed91d04 Change MixedModeAlgorithm default to TCP. Closes #7779.
MixedModeAlgorithm::Proportional will throttle TCP connections when utp
is in use and users is expecting maximum speed no matter what, so now
disable the throttling.
2017-11-22 22:39:52 +08:00
sledgehammer999
c58d0af88f Merge pull request #7806 from thoradia/rss_feed
Fix missing include in rss_feed.cpp

Fixes #7805
2017-11-22 15:51:05 +02:00
thoradia
ca5c1e8a15 Fix missing include in rss_feed.cpp
Fixes #7805.
2017-11-22 14:39:07 +01:00
sledgehammer999
4e96a1065e Bump API_VERSION to 16. 2017-11-22 01:14:33 +02:00
sledgehammer999
c9a8d19e6c Sync translations from Transifex and run lupdate. 2017-11-22 01:01:05 +02:00
sledgehammer999
81f5fdda15 Correctly check if torrent passed during application start already exists. 2017-11-22 00:42:26 +02:00
sledgehammer999
a38730eb9e Merge pull request #7792 from Chocobo1/creator2
Fix crash when aborting a torrent creation process
2017-11-22 00:41:26 +02:00
sledgehammer999
1a9e650936 Merge pull request #7782 from Chocobo1/utf8
Remove superfluous QString::fromUtf8()
2017-11-22 00:40:51 +02:00
sledgehammer999
ae5177b20f Merge pull request #7778 from Chocobo1/dragdrop
Allow drag-n-drop magnet links to mainwindow. Closes #7742.
2017-11-21 21:27:19 +02:00
Chocobo1
27090f0cfb Remove superfluous QString::fromUtf8() 2017-11-21 22:48:00 +08:00
Chocobo1
433b5a46cf Fix crash when aborting a torrent creation process. Closes #7783.
The wait time wasn't long enough causing the thread to
terminate prematurely.
Also, to avoid crashing qbt entirely when creating a torrent for a very
big file, I decided to wait indefinitely here.
2017-11-21 18:33:47 +08:00
Chocobo1
034d71dce3 Wrap function into anonymous namespace 2017-11-21 18:23:39 +08:00
Chocobo1
c3de2310c5 Avoid double delete on close 2017-11-21 18:11:28 +08:00
Chocobo1
b9478e0f00 Use Qt5 connect syntax 2017-11-21 18:11:28 +08:00
Chocobo1
94aeac992c Allow drag-n-drop magnet links to mainwindow. Closes #7742. 2017-11-21 14:19:34 +08:00
sledgehammer999
4927d26877 Fix english typo. 2017-11-21 02:14:44 +02:00
thalieht
ae1634623e Coding style for many files 2017-11-20 23:29:59 +02:00
sledgehammer999
296c7d3c13 Merge pull request #7764 from Chocobo1/logo
[WebUI] Fix logo missing in login page
2017-11-20 23:28:13 +02:00
sledgehammer999
22add258ae Merge pull request #7753 from luigino/master
qtsingleapplication should always be built statically to avoid depend…
2017-11-20 22:31:46 +02:00
Chocobo1
77f66be493 [WebUI] Fix logo missing in login page 2017-11-21 03:41:07 +08:00
Vladimir Golovnev
f41cb8089d Merge pull request #6779 from Piccirello/disable-web-auth
Add ip subnet whitelist for bypassing webui auth
2017-11-20 21:52:33 +03:00
luigino
32a686a037 qtsingleapplication should always be built statically to avoid dependency problems 2017-11-20 17:23:22 +01:00
sledgehammer999
236abcf3f1 Fix crash on opening torrent/magnet (uninitialized pointer). Closes #7739 #7723. 2017-11-20 17:46:31 +02:00
sledgehammer999
325f9f629d Improve the github issue template. 2017-11-20 16:20:10 +02:00
sledgehammer999
88a771c9ff Bump to 4.1.0alpha 2017-11-20 02:42:16 +02:00
sledgehammer999
b960e41cfa Update Changelog. 2017-11-20 02:28:19 +02:00
sledgehammer999
9f461d0fe6 Sync translations from Transifex and run lupdate. 2017-11-20 02:23:31 +02:00
sledgehammer999
9db1f3baca Merge pull request #6484 from sledgehammer999/new_logo
Change qbittorrent logo. Issue #6467.
2017-11-19 19:15:50 +02:00
sledgehammer999
af5a02d971 Merge pull request #7673 from sledgehammer999/webui_clean_exit
WebUI: Correctly exit depending if mainloop is running.
2017-11-19 19:12:30 +02:00
Vladimir Golovnev (Glassez)
71bb6538db Fix WebUI error handling 2017-11-19 19:10:04 +02:00
sledgehammer999
06ecc45d13 Merge pull request #7711 from Chocobo1/update
Update m4 macros
2017-11-19 18:37:26 +02:00
Chocobo1
31607c4d18 Simplify AX_BOOST_BASE usage
Regenerate configure
2017-11-17 18:25:46 +08:00
Chocobo1
84bb214642 Sync m4 macros with upstream 2017-11-17 15:28:14 +08:00
Mike Tzou
d821bdc9f3 Merge pull request #7669 from Chocobo1/portCheck
[WebAPI] Improve error messages
2017-11-10 23:41:19 +08:00
Vladimir Golovnev
63461e0895 Merge pull request #7688 from glassez/rss-log
Improve RSS events logging
2017-11-10 14:38:38 +03:00
Eugene Shalygin
08755a211b Merge pull request #7596 from evsh/path-history-items
Add option to tune download history list length. Closes #4043.
2017-11-10 12:23:40 +01:00
Vladimir Golovnev (Glassez)
a3c9c1c386 Improve RSS events logging
Fix RSS log messages was untranslatable.
Add more logging.
2017-11-09 15:40:39 +03:00
Thomas Piccirello
0de2f1776e Remove duplicate header 2017-11-08 22:39:49 -05:00
Thomas Piccirello
da0db92b9f Enable preferences Apply button when ip banlist is modified 2017-11-08 22:39:49 -05:00
Thomas Piccirello
95bf63330e Add ip subnet whitelist for bypassing webui auth 2017-11-08 22:39:49 -05:00
Mike Tzou
04cec39277 Merge pull request #7667 from Chocobo1/stackdump
Include & print caught signal in stackdump
2017-11-04 11:10:49 +08:00
sledgehammer999
7b95785954 Merge pull request #7672 from Kolcha/fix-file-permissions
dropped unneeded executable flag from several files
2017-11-03 21:35:33 +02:00
Nikolay Korotysh
7d0342e366 dropped unneeded executable flag from several files 2017-11-03 17:19:54 +03:00
Chocobo1
21bc08d643 Include/print caught signal in stackdump 2017-11-03 14:13:17 +08:00
sledgehammer999
ffa6f7ea34 Bump API_VERSION to 16. 2017-11-03 01:57:32 +02:00
sledgehammer999
6b0449dde7 Update Changelog. 2017-11-03 01:39:44 +02:00
Chocobo1
aa4107478e [WebAPI] Improve error messages
Also refactor to use class methods
2017-11-02 23:01:14 +08:00
sledgehammer999
9f8e7917a8 Merge pull request #7657 from Chocobo1/upnp
Disable upnp & nat-pmp on startup if disabled in options. Closes #7338.
2017-10-31 18:24:28 +02:00
Chocobo1
1b652c882e Refactor
Add const
Use Qt5 connect syntax
2017-10-31 19:09:01 +08:00
Chocobo1
601234e492 Explicitly set UPnP state on start-up. Closes #7338.
libtorrent 1.1 enables upnp by default.
2017-10-31 19:08:58 +08:00
sledgehammer999
6c804edadf Change default settings for tracker/tier announces to mimick ìTorrent behavior. 2017-10-30 23:27:29 +02:00
sledgehammer999
3a5c0d9818 Allow to specify if announcing to all tiers is desired. 2017-10-30 23:27:28 +02:00
sledgehammer999
2194a05e60 Merge pull request #7652 from Chocobo1/aboutExtLink
Open links in browser. Closes #7651.
2017-10-30 18:06:34 +02:00
sledgehammer999
a89c1a8d9a Use new logo in the file icon. 2017-10-30 02:41:26 +02:00
sledgehammer999
86215f8483 Use new logo in the splash screen. 2017-10-30 02:41:25 +02:00
sledgehammer999
a1b01c1b40 Remove unused image. 2017-10-30 02:41:24 +02:00
sledgehammer999
09cb95d3da Use the SVG for the tray icon. 2017-10-30 02:41:23 +02:00
sledgehammer999
48d7bdee0e Change qbittorrent logo. Issue #6467. 2017-10-30 02:41:22 +02:00
sledgehammer999
5157fc201c Add Turkish translator in about page. 2017-10-30 00:32:44 +02:00
Chocobo1
492ea5bceb Open links in browser. Closes #7651. 2017-10-28 14:51:20 +08:00
Mike Tzou
e8cf351b6a Merge pull request #7643 from Chocobo1/email
Allow SMTP sender to be set. Closes #7575.
2017-10-27 12:52:35 +08:00
Chocobo1
fc0628d35b Allow SMTP sender to be set. Closes #7575. 2017-10-26 17:57:32 +08:00
Mike Tzou
1f7391737e Merge pull request #7445 from Chocobo1/fixAddTorrent
Disable processing socket events in findIncompleteFiles()
2017-10-25 23:00:35 +08:00
Mike Tzou
acdb7a27dc Merge pull request #7638 from Chocobo1/msg
[WebUI] Improve log messages
2017-10-24 20:19:12 +08:00
Eugene Shalygin
1fed324f91 Add option to tune download history list length. Closes #4043. 2017-10-24 12:56:05 +02:00
Eugene Shalygin
e4771ba508 Add maxVisibleItems combo box property to FileSystemPathComboEdit. 2017-10-24 12:56:04 +02:00
sledgehammer999
6a36a3b1d9 Run lupdate again. 2017-10-24 03:34:49 +03:00
sledgehammer999
2956b28a32 Mention more translators in the about page after their request. 2017-10-24 03:32:57 +03:00
sledgehammer999
50471ec8c8 String fixes and optimizations mentioned by translators on Transifex. 2017-10-24 03:32:56 +03:00
sledgehammer999
3aa9ff5fba Sync translations from Transifex and run lupdate. 2017-10-24 01:28:31 +03:00
Mike Tzou
b6be5afb89 Merge pull request #7584 from Chocobo1/refactor
[WebAPI] Refactor
2017-10-23 19:36:28 +08:00
Chocobo1
157b809e21 [WebUI] Improve log messages 2017-10-23 16:45:41 +08:00
Mike Tzou
f74e2b0130 Merge pull request #7631 from Chocobo1/webUIaddr
Reinitialize webUI server when "IP address" setting changed
2017-10-23 14:11:50 +08:00
sledgehammer999
c887a162ba Fix row height/width in webui for country flags.
Patch by Chocobo1.
2017-10-23 01:23:54 +03:00
sledgehammer999
52df71ad3a Use svg icons for the country flags.
Closes #6223.
2017-10-23 01:23:45 +03:00
Chocobo1
d6ddc90199 Reinitialize webUI server when "IP address" setting changed
An app restart won't be necessary from now on.
2017-10-22 14:42:51 +08:00
Mike Tzou
9600e7f5ad Merge pull request #7573 from fmatthew5876/config_webui_ip
Add WebUi\Address config option
2017-10-22 14:18:08 +08:00
Chocobo1
f3603d05e7 Disable processing events when adding torrents. Closes #7436.
webUI connection timeout & deletion might occur while
doing processEvents() and will result in use-after-free segfault.
2017-10-22 13:54:03 +08:00
Matthew Fioravante
8cd243b06b Add WebUi\Address config option 2017-10-21 09:32:30 -04:00
Mike Tzou
1da3437a4a Merge pull request #7603 from Chocobo1/debugMsg
[WebUI]: Print error messages upon receiving invalid header fields
2017-10-21 01:10:25 +08:00
Vladimir Golovnev
c72fb92318 Merge pull request #7529 from dzmat/speedwidget_qtconcurrent_removal
Excess QtConcurrent usage removal
2017-10-20 10:32:27 +03:00
sledgehammer999
954448863e Merge pull request #7599 from scootergrisen/patch-1
Add me for danish
2017-10-19 01:50:35 +03:00
sledgehammer999
eec6009398 Merge pull request #7583 from LordNyriox/status-icons
Invert Framing for Torrent Status Icons
2017-10-19 01:45:22 +03:00
Chocobo1
ce362f0e5e WebAPI refactor: utilize parseBool() function
Coding style cleanup
Rename variable
Return const reference
Add const
2017-10-18 22:27:59 +08:00
Chocobo1
4940a77d12 [WebUI]: Print error messages upon receiving invalid header fields 2017-10-18 20:11:53 +08:00
sledgehammer999
4e77e01a67 Generate pngs using svgexport and optimize using PNGGauntlet. 2017-10-17 19:40:46 +03:00
sledgehammer999
5acdcb6c09 Optimize and prettify the svg source using svgo. 2017-10-17 19:32:34 +03:00
scootergrisen
8400d855de Add me for danish 2017-10-16 22:14:10 +02:00
Mike Tzou
bd07cb91bb Merge pull request #7571 from Chocobo1/webui_download
[WebAPI] Add parameters for /command/download & /command/upload
2017-10-15 20:32:14 +08:00
LordNyriox
d7e0a9b1ad Invert Framing for Torrent Status Icons
Also recolor the icons to match the text-color used for the torrent-status as well. 
Optimized using SVGOMG [<https://jakearchibald.github.io/svgomg/>].
2017-10-13 13:41:42 -04:00
Mike Tzou
dc600d47ec Merge pull request #7570 from Chocobo1/webui_fileIdx
[WebAPI] Add file-to-piece-index mappings in /query/propertiesFiles command
2017-10-14 01:05:00 +08:00
sledgehammer999
0d3952eef5 Sync translations from Transifex and run lupdate. 2017-10-13 03:56:57 +03:00
TheNicker
30a4ce40b9 Fixed blurry text under Windows by setting DPI awareness to default 2017-10-12 22:23:02 +03:00
dzmat
9d0ab0ae5f speedwidget class: excess QtConcurent usage removal 2017-10-12 20:59:13 +07:00
Chocobo1
e78d8b9fcc Convert tab into whitespaces 2017-10-11 20:27:19 +08:00
Chocobo1
f350977cb4 WebUI: add optional parameters for /command/download & /command/upload
Specifically:
torrent name: string
download limit, upload limit: number in bytes, default: -1 (unlimited)
sequential download, first last piece prio: boolean true/false, default: false
2017-10-11 20:25:11 +08:00
Eugene Shalygin
7a652c0a8c Merge pull request #7566 from evsh/themes-cbc
Themes part 1
2017-10-11 10:34:56 +02:00
Chocobo1
a652baadb5 Add file-to-piece-index mappings in /query/propertiesFiles command
Also do the following cleanups:
  Use string constant QB_EXT
  Remove redundant variable
  Add const
2017-10-11 16:24:29 +08:00
Chocobo1
66b86888fc Add uploadLimit, downloadLimit fields to AddTorrentData & AddTorrentParams 2017-10-11 16:23:58 +08:00
Mike Tzou
e07501252c Merge pull request #7549 from fmatthew5876/master
Report TCPServer errorString() if webui fails to listen to port
2017-10-11 16:22:52 +08:00
Mike Tzou
2977ba9ec2 Merge pull request #7563 from Chocobo1/delkey
Fix delete key has no effect due to "Ambiguous shortcut overload"
2017-10-11 16:15:55 +08:00
Eugene Shalygin
db35bb54e1 Make BitTorrent::TorrentState strongly-typed enum
This is needed to forward declare this type and pass it by value.

Conversion from/to QVariant are hanled via Q_DECLARE_METATYPE, while
TorrentState::toString() function was used in webui only and as such is
moved there.
2017-10-10 21:28:57 +02:00
Tim Delaney
19bb6f5fe0 Follow project coding style. Issue #2192.
--HG--
branch : magao-dev
2017-10-10 21:28:56 +02:00
Chocobo1
aab752dd2e Fix delete key has no effect due to "Ambiguous shortcut overload"
We want to show the accelerator key in the menu but without hitting
the ambiguous overload error.
Fixup of 1378245a63
2017-10-10 14:43:05 +08:00
Eugene Shalygin
8c75fdcb4c Merge pull request #7558 from evsh/uncrustify
Update uncrustify config
2017-10-09 20:04:37 +02:00
sledgehammer999
df03b69151 Merge pull request #7502 from sledgehammer999/optimize_img
Image housekeeping
2017-10-09 18:16:38 +03:00
sledgehammer999
aca7a851bb Optimize SVGs.
Used svgo with commands --pretty --indent=2 --multipass.
2017-10-09 18:15:41 +03:00
sledgehammer999
e9caefdfce Optimize PNGs.
Using PNGGauntlet.
2017-10-09 18:15:40 +03:00
sledgehammer999
16ac20b594 Remove unused image. Possibly leftover from dropping Qt4. 2017-10-09 18:15:39 +03:00
sledgehammer999
a3e071b734 Merge pull request #7562 from sledgehammer999/drop_os2
Drop OS/2 support.
2017-10-09 18:14:11 +03:00
sledgehammer999
5d3b9d2f22 Drop OS/2 support. 2017-10-09 18:11:14 +03:00
sledgehammer999
27a7e86599 Merge pull request #7561 from sledgehammer999/native_path
Show new paths in native form.
2017-10-09 18:09:55 +03:00
sledgehammer999
d93d0ab19e Show new paths in native form. 2017-10-09 17:42:42 +03:00
Eugene Shalygin
776627eee9 Update uncrustify config 2017-10-09 16:42:34 +02:00
Chocobo1
5185eeb7ef Die gracefully when failed to initialize web server with qbt-nox 2017-10-09 13:50:01 +08:00
Vladimir Golovnev
083bc71315 Merge pull request #7396 from thalieht/updownratio
Properly pre-select the selected torrent's current ratio limiting options in UpDownRatioDlg
2017-10-08 21:06:55 +03:00
Eugene Shalygin
b1b931922e Merge pull request #7555 from evsh/fix-qtsingleapplication-cmake
cmake: do not use Qt5Widgets when locating QtSingleApplication. Closes #7551.
2017-10-08 09:28:00 +02:00
thalieht
0717f0d60c Save ratio limits as int instead of string 2017-10-08 10:22:40 +03:00
thalieht
525fdd6c2b Coding style, use nullptr and other minor things 2017-10-08 10:20:54 +03:00
thalieht
f27e75e8fa Properly pre-select the selected torrent's current ratio limiting options in UpDownRatioDlg dialogs. Fixes #7352 2017-10-08 10:20:38 +03:00
Eugene Shalygin
0ad5290389 cmake: do not use Qt5Widgets when locating QtSingleApplication. Closes #7551.
This fixes cmake builds with GUI disabled and system
QtSingleApplication. We rely on Qt5::Core instead of Qt5::Widgets.
2017-10-07 21:48:52 +02:00
Mike Tzou
7895afb8e9 Merge pull request #7542 from Chocobo1/wordbreak
Set QTextOption::NoWrap property in "Download from URLs" dialog
2017-10-07 13:40:41 +08:00
Mike Tzou
2626378dfd Merge pull request #7545 from Kolcha/del-shortcut
added keyboard shortcut to delete torrent. closes #7508
2017-10-07 13:38:05 +08:00
Nick Korotysh
1378245a63 show delete accelerator key in menu. closes #7508 2017-10-06 14:51:19 +03:00
Matthew Fioravante
05c92e652c Report TCPServer errorString() if webui fails to listen to port 2017-10-06 05:54:52 +00:00
Mike Tzou
6c0dd81528 Merge pull request #7541 from Kolcha/sort-plugins
allow search plugins sorting. closes #7526
2017-10-05 16:16:27 +08:00
Vladimir Golovnev
bd1d775ca9 Merge pull request #7522 from glassez/winconf
Reformat Windows build configuration files
2017-10-04 09:18:27 +03:00
Chocobo1
b3207b8144 Set QTextOption::NoWrap property in "Download from URLs" dialog
This makes it easier to put each magnet link on its own line
2017-10-03 22:45:18 +08:00
Nick Korotysh
4c8dd0ca9d allow search plugins sorting. closes #7526 2017-10-03 16:57:09 +03:00
Vladimir Golovnev (Glassez)
61d9fcd753 Reformat Windows build configuration files 2017-10-02 18:57:54 +03:00
Vladimir Golovnev
c5607f07c8 Merge pull request #7514 from dzmat/members_names_clarification
members names clarification
2017-09-30 09:36:24 +03:00
Mike Tzou
49802be7d4 Merge pull request #7499 from Chocobo1/fixTimeActive
Fix "Time active" field in transfer list
2017-09-30 11:36:57 +08:00
dzmat
3d932b1cce transferlistwidget class members names clarification 2017-09-29 19:55:30 +07:00
Vladimir Golovnev
66a6674cbc Merge pull request #7490 from glassez/category-path
Allow to set explicit save path for Category from GUI
2017-09-29 14:25:40 +03:00
Chocobo1
2d12c126eb Fix "Time active" field in transfer list
The "Time active" field was broken, displaying nothing when in
downloading state.
Also change type to int to match the return
types of TorrentHandle::activeTime() & TorrentHandle::seedingTime()
2017-09-28 16:54:46 +08:00
Vladimir Golovnev (Glassez)
3ec992474d Implement TorrentCategoryDialog class 2017-09-27 21:25:22 +03:00
Mike Tzou
15babe97ea Merge pull request #7500 from Chocobo1/mergeName
Show torrent name in "add new torrent" dialog on merging trackers
2017-09-27 21:04:51 +08:00
Mike Tzou
308fd3dcac Merge pull request #7477 from silverqx/options-dlg-persist-size
Center Options dialog when showed
2017-09-27 20:35:04 +08:00
Mike Tzou
e8250104c8 Merge pull request #7429 from silverqx/preview-modal-ux
Improved ux in preview dialog
2017-09-27 20:33:31 +08:00
Mike Tzou
796cd674d7 Merge pull request #7495 from silverqx/options-save-state-cancel
Options dialog save windows state in destructor
2017-09-26 15:30:17 +08:00
Mike Tzou
1fe9272a8f Merge pull request #7480 from Chocobo1/lastAct
Fix last activity calculation
2017-09-26 15:17:35 +08:00
sledgehammer999
c285de87d4 Don't use margins in FileSystemPathEdit widgets.
Introduced in 30081e0.
2017-09-26 04:06:32 +03:00
Chocobo1
058062d586 Show torrent name in "add new torrent" dialog on merging trackers 2017-09-26 01:34:24 +08:00
silver
3b4fd35dde Persist size and treeview header state in preview dialog
- renamed variable m_headerState
 - renamed PreviewSelect class to PreviewSelectDialog
 - renamed previewselect files to previewselectdialog
2017-09-25 16:33:17 +02:00
silver
2a6bd5de35 Options dialog save windows state in destructor 2017-09-24 22:56:14 +02:00
silver
64e539fcfb Center Options dialog when showed 2017-09-24 19:40:48 +02:00
Mike Tzou
de6ca29dcd Merge pull request #7482 from Chocobo1/update
Update qtsingleapplication
2017-09-24 22:39:59 +08:00
silver
ef63202be2 Follow project coding style. Issue #2192. 2017-09-24 16:18:39 +02:00
Chocobo1
62493c672d Fix last activity calculation. Closes #7461
`time_since_upload` & `time_since_download` can be -1, so filter them out
2017-09-24 21:06:34 +08:00
Vladimir Golovnev (Glassez)
8c58a69be6 Use Qt5 connect() style in CategoryFilterWidget 2017-09-24 16:01:39 +03:00
Mike Tzou
2eb3ec1a6e Merge pull request #7463 from Piccirello/fix-priority-context-menu-placement
Reposition "Priority" menu option in WebUI to match gui (closes #7072)
2017-09-24 10:28:05 +08:00
Chocobo1
e3da17caa8 Update qtsingleapplication
To upstream version a8dda66d7738cde9042b87db27993f710ae3eeeb
2017-09-23 00:27:00 +08:00
sledgehammer999
c7e35a1801 Merge pull request #7451 from sledgehammer999/report_delete_fail
Better reporting of success/failure of torrent and file deletion.
2017-09-21 23:36:53 +03:00
Mike Tzou
83c6b22d30 Merge pull request #7454 from Chocobo1/buttonbox
Replace dialog ok-cancel buttons with QDialogButtonBox
2017-09-21 22:45:45 +08:00
Mike Tzou
fc5d49bf9a Merge pull request #7460 from Chocobo1/tribool
Use smaller data type for TriStateBool
2017-09-21 20:17:34 +08:00
Mike Tzou
473ed45b3f Merge pull request #7468 from Chocobo1/apiwipeass
WebAPI: fix root_folder default behavior
2017-09-21 20:17:14 +08:00
Chocobo1
c5ddbcfb5b WebAPI: fix addPaused wrong default behavior
Add helper function
Sort include header
2017-09-19 17:26:01 +08:00
Chocobo1
72b0ba36ae Refactor
Merge statements
Use case-insensitive contains()
Add const
Use value(), this avoids inserting empty values.
Use range based for loop
2017-09-19 14:16:39 +08:00
Chocobo1
b107c0671d WebAPI: fix root_folder default behavior
Bug was introduced in
6b33db3ae3
2017-09-19 13:07:50 +08:00
sledgehammer999
b9e233601d Merge pull request #7446 from Chocobo1/utpOnly
Add uTP only mode option
2017-09-19 01:45:58 +03:00
sledgehammer999
8f16388915 Better reporting of success/failure of torrent and file deletion. 2017-09-17 23:04:12 +03:00
Chocobo1
d143929454 Use smaller data type for TriStateBool 2017-09-18 02:21:47 +08:00
Chocobo1
45a0c5558a Add comboBox for selecting BitTorrent protocol. Closes #6316.
Use unicode string C_UTP in place of "uTP"
2017-09-18 01:52:57 +08:00
Thomas Piccirello
b6596f9957 Reposition "Priority" menu option in WebUI to match gui (closes #7072) 2017-09-17 05:42:46 -04:00
Chocobo1
7059b947e8 Replace dialog ok-cancel buttons with QDialogButtonBox
This PR will make button order follow the platform default.
For example: windows use: OK, Cancel; linux use: Cancel, OK.
2017-09-15 18:52:21 +08:00
Mike Tzou
4eafe7a2c8 Merge pull request #7426 from thalieht/webuiStripFolder
Add the create root folder option when adding a torrent in WebUI
2017-09-15 13:01:48 +08:00
sledgehammer999
d165da9c6c Merge pull request #7417 from Chocobo1/fix
Fix default value of m_diskCacheSize
2017-09-14 16:13:12 +03:00
Chocobo1
a341b793e4 Rename option
The previous "Disk write cache size" is not accurate since it is also being used
for read cache, so rename it to "Disk cache".
2017-09-14 20:32:10 +08:00
Chocobo1
a1d46a278b Change default value of m_diskCacheSize. New default is 64 MB. 2017-09-14 20:32:04 +08:00
Eugene Shalygin
c6cf3a98a4 Merge pull request #7428 from evsh/allow-all-tray-icons
Allow custom tray icons when system icon theme is used. Closes #7403.
2017-09-12 11:09:44 +02:00
Mike Tzou
56887efdf5 Merge pull request #7422 from Chocobo1/delete
Fix dereferencing freed pointer
2017-09-12 02:14:08 +08:00
Eugene Shalygin
4ec193042f Allow custom tray icons when system icon theme is used. Closes #7403. 2017-09-11 16:18:10 +02:00
thalieht
6b33db3ae3 Create root folder option when adding a torrent in WebUI 2017-09-11 16:56:33 +03:00
Chocobo1
855772ae5a Fix dereferencing freed pointer. Closes #7420.
The torrent is removed from session after `deleteTorrent()`
yet we still invoke `torrent->name()`, thus result in crash.
2017-09-11 13:16:34 +08:00
sledgehammer999
467ba380b2 Travis: Update libtorrent bottle with boost 1.65+ fix. 2017-09-11 01:20:02 +03:00
Mike Tzou
93ed8e98c1 Merge pull request #7402 from comradekingu/patch-2
Spelling: HTTP/HTTPS
2017-09-08 20:12:27 +08:00
Allan Nordhøy
5c18db240c Spelling: HTTP/HTTPS 2017-09-08 11:22:25 +02:00
sledgehammer999
915ec81f83 Merge pull request #7385 from Chocobo1/coding_style
Update coding guidelines (proposal)
2017-09-08 02:20:15 +03:00
sledgehammer999
8c545d2947 Update Changelog. 2017-09-08 00:54:08 +03:00
sledgehammer999
cbfbae1409 Bump to 3.4.0beta2 2017-09-06 01:46:27 +03:00
sledgehammer999
728b7dec3e Sync translations from Transifex and run lupdate. 2017-09-06 01:44:47 +03:00
sledgehammer999
7b5730723d Fix file list expansion on singlefile torrent with folder. 2017-09-06 01:11:49 +03:00
Chocobo1
71844e13af Update coding guidelines
Add ranged-based for loop example
Add class inheritance example
Add Prefer pre-increment, pre-decrement operators section
Fix space after comment keyword
Fix header include order
[skip ci]
2017-09-05 14:24:52 +08:00
Vladimir Golovnev
c6dfdf9135 Fix CategoryFilterWidget::sizeHint() 2017-09-01 16:11:21 +03:00
Vladimir Golovnev
4cd3a37b4a Fix suggest_mode setting
Actually suggest_mode is of type int.
2017-08-31 22:02:52 +03:00
Mike Tzou
5efb4b522f Merge pull request #7358 from Chocobo1/qstringbuilder
Improve compile defines
2017-08-29 16:42:09 +08:00
Chocobo1
64d5e329c0 Sort the resource lists
Update RCC header
2017-08-29 13:39:02 +08:00
Chocobo1
ee9caa4305 Cleanup src.pro 2017-08-29 13:39:02 +08:00
Chocobo1
39b56ac598 Move NOMINMAX define 2017-08-29 13:39:01 +08:00
Chocobo1
551ffb88ab Define QT_USE_QSTRINGBUILDER.
The old defines are deprecated.
QT_USE_QSTRINGBUILDER also supports QByteArray which we use extensively
in WebUI.
2017-08-29 13:37:29 +08:00
Mike Tzou
698bd431e6 Merge pull request #7340 from Chocobo1/leak
Fix leak & use Qt5 connect syntax
2017-08-24 23:08:01 +08:00
Chocobo1
ccd3b305c2 Use Qt5 connect syntax 2017-08-24 20:15:25 +08:00
Chocobo1
b47c90f0e0 Setup parent ownership to avoid memory leak 2017-08-24 20:01:39 +08:00
Mike Tzou
1afd5f70dd Merge pull request #3235 from Chocobo1/session_option
libtorrent session options
2017-08-24 11:35:15 +08:00
Vladimir Golovnev
4cb304def8 Merge pull request #7334 from qbittorrent/fix-7333
Fix RSS Downloader fails to rename rule. Closes #7333
2017-08-23 22:21:57 +04:00
Vladimir Golovnev
f2af308e6d Fix RSS Downloader fails to rename rule
Closes #7333.
2017-08-23 16:45:14 +03:00
Vladimir Golovnev
a6868e2b25 Merge pull request #7313 from glassez/sched
Don't disable scheduler when manually switching speed limits. Closes #7306
2017-08-23 17:05:28 +04:00
Vladimir Golovnev
7a96ddccc6 Merge pull request #7332 from qbittorrent/fix-7327
Skip user input events when adding torrent. Closes #7327
2017-08-23 13:10:36 +04:00
Vladimir Golovnev
bda5be8e4c Skip user input events when adding torrent
Closes #7327.
2017-08-23 11:14:34 +03:00
Vladimir Golovnev (qlassez)
93f5d4058d Improve BandwidthScheduler
Don't disable scheduler when manually switching speed limits.
Closes #7306.
2017-08-23 09:48:31 +03:00
Eugene Shalygin
98dd2be673 Merge pull request #7324 from Evengard/vpntunnels-patch
Disable skipping of loopback interfaces in settings tab
2017-08-22 14:03:11 +02:00
Evengard
ea7c1ace2a Disable skipping of loopback interfaces
This fixes the absence of VPN tunnel interfaces under Windows and works around the QTBUG-32349
Fixes #7291
2017-08-22 00:00:20 +03:00
Chocobo1
2da2054ccf Use enums for settings 2017-08-21 20:30:26 +08:00
Chocobo1
3f5fa0025d Add sanitize helper clampValue() 2017-08-21 16:50:56 +08:00
Chocobo1
f4be165767 Add send_buffer_watermark send_buffer_low_watermark
send_buffer_watermark_factor knobs
2017-08-21 16:50:14 +08:00
Chocobo1
55a1628a5e Add suggest_mode knob 2017-08-21 16:50:14 +08:00
Chocobo1
6c32f6beff Add choking_algorithm & seed_choking_algorithm knob 2017-08-21 16:49:45 +08:00
Chocobo1
21ec8fe53f Add allow_multiple_connections_per_ip knob. Closes #5884. 2017-08-21 16:48:38 +08:00
Chocobo1
4185209036 Add mixed_mode_algorithm knob 2017-08-21 16:48:38 +08:00
Chocobo1
6150e0c56b Add guided_read_cache knob
cleanup header include order
2017-08-21 16:48:37 +08:00
sledgehammer999
42b811e578 Merge pull request #7316 from evsh/plugin-version-crash-fix
Fix ignoring of incorrect version strings in search plugins. Closes #7101
2017-08-21 00:18:19 +03:00
Eugene Shalygin
ef1597e45b Fix ignoring of incorrect version strings in search plugins. Closes #7101.
Printing of Version with all components set to zero was segfaulting due
to underflow in array index. Also add log message for such plugins.
2017-08-20 22:44:20 +02:00
sledgehammer999
1e677c6728 Merge pull request #7315 from Chocobo1/hostheader
WebAPI: fix validating wrong header field. Closes #7311.
2017-08-20 20:55:20 +03:00
Chocobo1
9ef1e32327 WebAPI: fix validating wrong header field. Closes #7311.
X-Forwarded-Host is a foreign proxy setting, it isn't the same as
qbt's local setting and thus it makes no sense to verify it.
2017-08-20 22:40:19 +08:00
sledgehammer999
173f6fd75d Check for Qt5Svg when configuring. 2017-08-18 23:00:53 +03:00
sledgehammer999
bbe7821483 Merge pull request #7300 from Chocobo1/cleanup
Minor cleanup
2017-08-18 21:08:27 +03:00
Chocobo1
65ca490b64 Wrap class & functions in anonymous namespace
Rename vars
Cleanup class interfaces
Pass by reference whenever possible
2017-08-19 01:57:11 +08:00
sledgehammer999
907f222a73 Switch settings to signed int because libtorrent expects them that way. 2017-08-18 20:21:39 +03:00
sledgehammer999
b649d61e8b Options to better memory control by libtorrent. Closes #7029. 2017-08-18 20:21:37 +03:00
sledgehammer999
ea793368a9 Merge pull request #7279 from evsh/file-icon-cache
Use pixmap cache for file icons on Mac OS and Windows. Closes #7264.
2017-08-18 19:31:19 +03:00
Eugene Shalygin
3331526865 Use pixmap cache for file icons on Mac OS and Windows. Closes #7264. 2017-08-15 22:25:03 +02:00
sledgehammer999
cccb22f0e3 Merge pull request #7282 from glassez/fsutils
Improve utils/fs.* and fix coding style
2017-08-15 22:47:39 +03:00
sledgehammer999
4f0d9605fe Merge pull request #7281 from vit9696/notifications2
Fix notification display on macOS
2017-08-15 22:34:35 +03:00
sledgehammer999
19fcd3dad6 Fix broken build. 2017-08-15 22:12:16 +03:00
vit9696
eb8ff91c5d Fix notification display on macOS 2017-08-15 21:16:37 +03:00
sledgehammer999
f98edcab5c Merge pull request #7272 from vit9696/patch-1
Fix macOS window restoration after using hide icon
2017-08-15 21:13:58 +03:00
sledgehammer999
e5ea3bd707 Merge pull request #7253 from briankendall/fix_objc_errors
Fixed mac specific compiler errors and cleaned up Objective C code. Closes #7252
2017-08-15 21:06:09 +03:00
sledgehammer999
c87c1d2359 Use simpler ifdef style. 2017-08-15 21:01:55 +03:00
sledgehammer999
7bb9c69c08 Fix connection problems when a specific interface/ip is configured.
Closes #7235.
Bug related to #7099 and Qt.
2017-08-15 19:33:45 +03:00
sledgehammer999
25eb2edb86 Merge pull request #7273 from vit9696/borders
Unify preference window borders across the tabs
2017-08-15 18:14:11 +03:00
sledgehammer999
c2a8970109 Fix calculation of 'Average time in queue' stat under libtorrent 1.1.x 2017-08-15 17:38:41 +03:00
Vladimir Golovnev (qlassez)
59c14801cc Improve utils/fs.* and fix coding style 2017-08-15 16:17:57 +03:00
Mike Tzou
ea749bb052 Merge pull request #7276 from Chocobo1/pr_7063
Auto torrent management from webui context menu
2017-08-15 11:47:21 +08:00
vit9696
1cb69c9b43 Unify preference window borders across the tabs 2017-08-14 20:10:28 +03:00
sledgehammer999
89d8a2fe72 Merge pull request #7251 from Chocobo1/spacing
Add space between widgets in left side panel. Closes #7224.
2017-08-14 19:11:54 +03:00
Thomas Piccirello
4846b0ec28 Use single quotes for char.
Use case insensitive compare.
Swap conditionals
2017-08-14 23:15:03 +08:00
Thomas Piccirello
771033a449 Add auto torrent management to webui context menu (addresses #6815) 2017-08-14 23:14:46 +08:00
vit9696
16d7301046 Fix macOS window restoration after using hide icon 2017-08-14 12:38:42 +03:00
sledgehammer999
e2893fe68f Error out in configure script if the proper Qt/qmake version isn't found.
Closes #7250.
Partially reverts e64bb1de8c.
2017-08-13 20:29:53 +03:00
sledgehammer999
8d913d77dd Merge pull request #7266 from Chocobo1/coverity
Fix issues found by coverity scan
2017-08-13 20:10:04 +03:00
Mike Tzou
0522db3f19 Merge pull request #7061 from Piccirello/webui-rename-torrent
Rename torrent from webui context menu (addresses #6815)
2017-08-13 23:39:35 +08:00
Vladimir Golovnev
50cea9d912 Merge pull request #7268 from glassez/logging-strings
Use qUtf8Printable() for logging strings
2017-08-13 17:34:28 +04:00
Vladimir Golovnev (qlassez)
cff6a64e9f Use qUtf8Printable() for logging strings
qDebug(), qInfo(), qWarning(), qCritical(), qFatal() expect %s arguments
to be UTF-8 encoded, while qPrintable() converts to local 8-bit encoding.
Therefore qUtf8Printable() should be used for logging strings instead of
qPrintable().
2017-08-13 16:14:57 +03:00
Vladimir Golovnev
219a6b3ad1 Merge pull request #7267 from glassez/remove-temp
Don't remove shared temp folder
2017-08-13 17:00:40 +04:00
Thomas Piccirello
798c230634 Add option to rename torrent from WebUI
Addresses #6815.
2017-08-13 15:45:51 +03:00
Vladimir Golovnev (qlassez)
3801150a7a Don't remove shared temp folder
Don't remove shared temp folder when torrent finished and moved to
its "complete" folder. Only torrents with stripped root folder
have subfolder in temp folder so they should remove it.
2017-08-13 14:17:12 +03:00
Chocobo1
91b2b14ba5 Initialize variables
Remove unused variable
2017-08-13 15:28:36 +08:00
sledgehammer999
1b8cda7924 Follow project coding style. 2017-08-12 16:23:15 +03:00
sledgehammer999
31a4309077 Catch possible exceptions when parsing IPs. Closes #7249. 2017-08-12 16:23:14 +03:00
sledgehammer999
db3fd24cea Use dpiawareness=1 on Windows. Closes #5393. 2017-08-12 12:50:24 +03:00
Brian Kendall
62b956946f Fixed mac specific compiler errors and cleaned up Objective C code
Created new file src/gui/macutilities.mm, moved code from mainwindow.cpp and torrentcontentmodel.cpp that used the Objective C runtime into it and converted it to actual Objective C. Rewrote pixmapForExtension() so that it doesn't call into private Qt functions.
2017-08-11 20:51:16 -04:00
Chocobo1
04552f7921 Add space between widgets in left side panel. Closes #7224. 2017-08-11 21:37:33 +08:00
Vladimir Golovnev
9417105990 Merge pull request #7240 from glassez/fix-7226
Remove legacy RSS settings after converting. Closes #7226
2017-08-11 13:08:28 +04:00
sledgehammer999
593c24e5bd Merge pull request #7234 from thalieht/indentation
Remove indentation for category/tag filter widgets in all platforms
2017-08-11 11:25:24 +03:00
Vladimir Golovnev (qlassez)
7380bfa9e4 Remove legacy RSS settings after converting
Closes #7226.
2017-08-09 22:01:30 +03:00
sledgehammer999
6f0d16bca5 Merge pull request #7237 from Chocobo1/prefill_name
Prefill torrent name when creating a new torrent. Closes #7229.
2017-08-09 20:04:42 +03:00
Chocobo1
78dafc9cbe Prefill torrent name when creating a new torrent. Closes #7229. 2017-08-09 15:26:05 +08:00
thalieht
2da5800665 Remove indentation for category/tag filter widgets in all platforms 2017-08-08 23:43:23 +03:00
sledgehammer999
6270433237 Fix explicit Torrent Management Mode in Add New Torrent dialog. Closes #5602. 2017-08-07 20:01:30 +03:00
sledgehammer999
8214d25f9f Update Changelog. 2017-08-07 08:53:57 +03:00
sledgehammer999
df7565c9e2 Bump to 3.4.0beta 2017-08-07 08:39:50 +03:00
sledgehammer999
d48218bfe9 Sync translations from Transifex and run lupdate. 2017-08-07 08:34:40 +03:00
sledgehammer999
db653cbdac Merge pull request #7214 from Chocobo1/fixups
WebUI fixups
2017-08-07 08:11:32 +03:00
sledgehammer999
766f70c81a Merge pull request #7118 from vit9696/master
Fixed file type icons not displaying on macOS
2017-08-07 08:10:58 +03:00
Chocobo1
3e9311b096 Correctly handle translation
Fixup of 07a85a1018
2017-08-06 17:20:01 +08:00
Chocobo1
1bfb8d35cd Move "Copy hash" menu item above "Copy magnet link"
Fix wrong "Copy hash" icon used in webUI
Fixup of 145641ac41
2017-08-06 17:19:55 +08:00
Tom Piccirello
07a85a1018 Set torrent location from webui context menu (addresses #6815) (#7062)
* Add option to set torrent location from webui context menu (addresses #6815)

* Update debug messages

* Use logger

* Remove redundant curly braces

* Remove message

* Use log message from transferlistwidget

* Use QDir

* Remove unused import

* Check if newLocation is an empty string
2017-08-06 17:04:39 +08:00
Tom Piccirello
145641ac41 Add copy options to webui context menu (addresses #6815) (#7036)
* Add copy options to webui context menu
Add Copy Hash to gui (closes #6964)

* Use switch statement

* Use camel case, switch from signal to qaction.

* Rename variable

* Change variable name
2017-08-06 16:35:12 +08:00
sledgehammer999
08aa827366 Fix some more strings. 2017-08-06 01:47:05 +03:00
sledgehammer999
4d8a939291 Merge pull request #7173 from comradekingu/patch-1
display, URLs, esc '
2017-08-06 01:46:03 +03:00
sledgehammer999
e1f514042f Merge pull request #7207 from glassez/move-torrent
Don't replace existing files when manually relocating torrent
2017-08-05 20:26:05 +03:00
Vladimir Golovnev (qlassez)
7d78457fe0 Don't replace existing files when relocating torrent 2017-08-05 20:17:44 +03:00
Vladimir Golovnev (qlassez)
f067b8b37c Don't remove shared temp folder 2017-08-05 19:53:23 +03:00
sledgehammer999
6043584305 Merge pull request #7176 from glassez/temp-folder
Don't create subfolder inside temp folder. Closes #5503
2017-08-04 20:47:49 +03:00
sledgehammer999
bb02ccd574 Merge pull request #7132 from vlakoff/FindProcDLL
Windows installer: also detect running process when it is 64-bit
2017-08-04 16:55:15 +03:00
Eugene Shalygin
64b250903f Merge pull request #7083 from tgregerson/tags
Improve tag selection context menu. Closes #7060
2017-08-03 21:06:08 +02:00
Tony Gregerson
c5e73219bf Improve checkbox interface for selecting tags in the context menu. Closes #7060 2017-08-02 19:27:00 -05:00
Vladimir Golovnev (Glassez)
5f47d3b021 Don't create subfolder inside temp folder 2017-07-29 18:04:23 +03:00
Vladimir Golovnev (Glassez)
d22b626a02 Fix temporary subfolder isn't deleted 2017-07-28 15:16:02 +03:00
Allan Nordhøy
af9c0cca23 display, URLs, esc ' 2017-07-28 02:42:35 +02:00
sledgehammer999
dcba10f01b Sync translations from Transifex and run lupdate. 2017-07-27 19:16:30 +03:00
Mike Tzou
5bc3b0138e Merge pull request #7110 from Chocobo1/plugin_signal
Fix crash when exiting qbt with search plugin update dialog open
2017-07-21 10:40:54 +08:00
vlakoff
a641c0bb2f Windows installer: also detect running process when it is 64-bit
Replacing FindProcDLL with a different one that can be found here:

http://forums.winamp.com/showthread.php?t=322583#post2777719
2017-07-20 19:33:19 +02:00
sledgehammer999
1aa3c69916 Merge pull request #7122 from vit9696/uifix
Fix main menu item location on macOS
2017-07-20 19:31:15 +03:00
Chocobo1
e7ee59c12f Specify context parameter in connect() 2017-07-20 13:26:36 +08:00
Chocobo1
24a69a9fe7 Fix crash when exiting qbt with search plugin dialog open
Avoid emitting signal in destructor
2017-07-20 13:26:36 +08:00
vit9696
7b4316ea8f Fix main menu item location on macOS 2017-07-19 23:48:42 +03:00
vit9696
6c3ab99e3c Fix file type icons not displaying on macOS 2017-07-19 21:37:38 +03:00
sledgehammer999
802cd89ec9 Bump API_VERSION and API_VERSION_MIN to 15. 2017-07-18 22:38:59 +03:00
sledgehammer999
aa1ddc0df2 Fix typo. 2017-07-18 03:32:06 +03:00
Tom Piccirello
11b44407af Add Status column to webui (addresses #6815) (#7032)
* Add Status column to webui (addresses #6815)
2017-07-17 14:26:52 +08:00
sledgehammer999
962e5a8f3d Merge pull request #7106 from Chocobo1/slots
Fix "No such slot" errors
2017-07-16 12:49:21 +03:00
Chocobo1
e73db85fad Use Qt5 connect syntax 2017-07-16 15:03:25 +08:00
Chocobo1
ec16525164 Fix "QObject::connect: No such slot" errors
Fixup of d25467d3e6
2017-07-16 15:03:25 +08:00
Chocobo1
1f9eb594e7 Trim whitespaces 2017-07-16 11:47:53 +08:00
sledgehammer999
c964f0c490 Merge pull request #6952 from vit9696/master
Various macOS UI improvements
2017-07-15 20:51:45 +03:00
vit9696
d25467d3e6 Various macOS UI improvements 2017-07-15 20:49:40 +03:00
sledgehammer999
b6ce109cdb Merge pull request #7103 from evsh/cmake
Install required plugins into bundle
2017-07-14 22:44:50 +03:00
Eugene Shalygin
c614c66535 Install required plugins into bundle
Install platform and svg plugins into bundle. Update dependencies in
Travis.
2017-07-14 17:42:02 +02:00
sledgehammer999
b3004ac28b Various fixes for Travis, macOS and cmake. 2017-07-14 18:29:55 +03:00
sledgehammer999
c4b9063767 Drop use of custom qt bottle for Travis and homebrew.
Patch for macdeployqt is included in the official homebrew formula.
2017-07-14 18:29:54 +03:00
Mike Tzou
a6bb642200 Merge pull request #7096 from Chocobo1/fix
[WebUI] Load the domain list at least once on startup
2017-07-13 17:34:35 +08:00
Eugene Shalygin
22ea0be917 Merge pull request #7099 from evsh/set-inet-outgoing
Set interface for outgoing traffic.
2017-07-13 11:13:07 +02:00
Eugene Shalygin
934133772e Set interface for outgoing traffic.
This sets interface for outgoing traffic to the same as for ingoing
(listetning) with libtorrent 1.1.x.
2017-07-12 21:28:00 +02:00
Chocobo1
07780b48c5 Load the domain list at least once on startup.
Fixup of 0532d546d7
2017-07-13 00:41:30 +08:00
Chocobo1
0532d546d7 Implement HTTP host header filtering
This filtering is required to defend against DNS rebinding attack.
2017-07-12 17:26:13 +03:00
Chocobo1
18651c8d01 Use Qt5 connect syntax 2017-07-12 17:26:11 +03:00
Chocobo1
55e038b165 Avoid modifing request headers 2017-07-12 17:26:05 +03:00
Eugene Shalygin
23616d5dd0 Merge pull request #7064 from evsh/cachesettingvalue-enum
Implement enum support in CachedSettingValue
2017-07-11 16:03:20 +02:00
Eugene Shalygin
3aff71020f Merge pull request #7087 from LordNyriox/patch-2
Create README for "qbt-theme"
2017-07-11 11:47:02 +02:00
Mike Tzou
f345d0f136 Merge pull request #7082 from Chocobo1/js
[WebUI] Fix value comparison
2017-07-11 17:23:32 +08:00
Eugene Shalygin
d397cf60fb Merge pull request #7065 from evsh/win-svg-tray-icon
Use SVG files for monochrome tray icons. Closes #6085.
2017-07-11 10:51:37 +02:00
LordNyriox
28f336f5bd Create README for "qbt-theme" 2017-07-10 08:56:48 -07:00
Chocobo1
be61e8f2fd Revert back to intended fallthrough
Partial revert a7f4ea8b18
2017-07-10 00:36:56 +08:00
Chocobo1
448d937c15 Fix value comparison. Closes #7081.
`category` could be 'undefined'.
Fixup of a7f4ea8b18.
2017-07-09 22:31:14 +08:00
sledgehammer999
3d970399d4 Update Travis to use the new macOS packages for qt and libtorrent. 2017-07-08 21:15:50 +03:00
Eugene Shalygin
228f82bcdc Merge pull request #6967 from thalieht/codingStyle
Coding style for several files
2017-07-06 18:17:02 +02:00
sledgehammer999
aaf78f09c2 Update Changelog. 2017-07-06 01:08:39 +03:00
sledgehammer999
7a478424cc Revert "Drop python2 support.". Closes #7005.
This reverts commit 7d030b4cd9.
2017-07-06 01:07:09 +03:00
Eugene Shalygin
e66dba6a2d Use SVG files for monochrome tray icons. Closes #6085. 2017-07-05 22:00:02 +02:00
sledgehammer999
247d07edb9 Update Changelog. 2017-07-05 18:17:48 +03:00
sledgehammer999
29945f5aa7 Sync changelog entries from other branches. 2017-07-05 18:17:48 +03:00
Eugene Shalygin
ff710ebd2c fixup! Implement enum support in CachedSettingValue 2017-07-05 13:41:08 +02:00
Eugene Shalygin
a22d2f0139 Implement enum support in CachedSettingValue
Enums are stored as strings, that improves configuration file
readability and maintainability. String values are obtained via
QMetaEnum, and since with Qt 5.5 QMetaEnum::fromType() includes a
static_assert, this has to be a safe method.
2017-07-05 12:41:58 +02:00
Mike Tzou
db2dec3d28 Merge pull request #7031 from Piccirello/fix-js-errors
Fix various javascript errors and follow best practices
2017-07-05 15:03:09 +08:00
Mike Tzou
726e9f0774 Merge pull request #7030 from Piccirello/failed-attempts-auth
Skip webui username/password check for active sessions
2017-07-05 15:02:24 +08:00
sledgehammer999
8e6df572a8 Merge pull request #6156 from evsh/file-icons
Use system file type specific icons in contents tab
2017-07-03 18:06:22 +03:00
Eugene Shalygin
57493c5556 Add QFileIconProvider implementation using mime database
If built-in QFileIconProvider does not seem to work, use custom
implementation which queries mime database.
2017-07-03 16:49:19 +02:00
Eugene Shalygin
30bf6e958f Use system file type specific icons in contents tab
The icon is determined via QFileIconProvider using filename extension only.
2017-07-03 16:49:14 +02:00
sledgehammer999
f2e771ddc0 Merge pull request #7054 from evsh/fix-file-widget
Do not show completion when text is not being edited
2017-07-03 15:37:46 +03:00
Eugene Shalygin
6b65f8add8 Do not show completion when text is not being edited 2017-07-03 12:57:02 +02:00
Eugene Shalygin
8318f72a9e Follow project coding style. Issue #2192. 2017-07-03 11:42:30 +02:00
Eugene Shalygin
59bbf2c6c6 Merge pull request #7053 from evsh/cmake
Fix build.
2017-07-03 11:33:06 +02:00
Eugene Shalygin
11f5738d99 Fix build. 2017-07-03 10:36:52 +02:00
Eugene Shalygin
62be2d7400 cmake: fix build 2017-07-03 10:36:42 +02:00
sledgehammer999
7f37b80801 Switch appveyor to msvc2017. 2017-07-03 02:02:45 +03:00
sledgehammer999
2d119c3e9d Leave a comment about boost DEFINE and RC_1_1. Issues #7050 #6761. 2017-07-02 20:47:01 +03:00
sledgehammer999
b97d098a85 Merge pull request #7034 from scootergrisen/patch-1
Added danish translation
2017-07-01 17:33:33 +03:00
scootergrisen
6dccab5797 Added danish translation 2017-07-01 14:57:20 +02:00
Mike Tzou
8150805312 Merge pull request #6806 from Anton-Latukha/master
Work on Systemd service unit
2017-07-01 17:02:09 +08:00
Thomas Piccirello
a7f4ea8b18 Fix javascript errors and follow best practices 2017-07-01 03:28:35 -04:00
Thomas Piccirello
cd5a55d711 Skip username/password check for active sessions (closes #6860) 2017-07-01 03:26:15 -04:00
Mike Tzou
aa947ee966 Merge pull request #7023 from Chocobo1/msvc_stack
Raise total stack size on Windows
2017-07-01 12:50:13 +08:00
thalieht
91f528bc96 Fix coding style for several files
trackerlist
autoexpandabledialog
previewselect
shutdownconfirmdlg
torrentcontentfiltermodel
torrentcontenttreeview
peerlistsortmodel.h
2017-06-30 23:44:12 +03:00
Chocobo1
53017d5cde Separate "Release mode" linker options 2017-06-30 23:53:53 +08:00
Chocobo1
741d87cb91 Raise total stack size on Windows to 8 MB. Closes #7021.
MSVC default was 1 MB.
2017-06-30 23:43:29 +08:00
Vladimir Golovnev
4d28f8f48d Fix RSS with normal links do not work (#7016)
Fix regression of RSS code redesign.
Closes #7003.
2017-06-30 11:16:40 +03:00
sledgehammer999
1a506ac582 Merge pull request #7002 from adem4ik/patch-1
Update russian.nsi
2017-06-27 20:39:11 +03:00
Andrei Stepanov
13a8c84bbd Update russian.nsi 2017-06-27 17:49:58 +04:00
Vladimir Golovnev
3181469d87 Merge pull request #6911 from tgregerson/tags
Add a Tags system to the GUI to expand torrent organization / filtering options. Closes #13.
2017-06-26 15:57:27 +03:00
Tony Gregerson
467e516801 Add a Tags (multi-label) feature to the GUI. Closes #13.
See https://github.com/qbittorrent/qBittorrent/issues/13 for details.
2017-06-25 13:53:07 -05:00
sledgehammer999
70ae05c3de Pad shorter python versions. Closes #6877. 2017-06-25 17:20:51 +03:00
sledgehammer999
7d030b4cd9 Drop python2 support. 2017-06-25 17:20:50 +03:00
sledgehammer999
a77e1c9f36 Use qt5 connect style for searchengine, pluginselectdlg and searchwidget. 2017-06-22 18:54:30 +03:00
sledgehammer999
dee0b63cc5 Aggregate installed/updated plugin names and use a single messagebox to inform the user. 2017-06-22 18:54:29 +03:00
sledgehammer999
c2a2d306da Use alternative method for plugin favicon validity. Drop unnecessary code. 2017-06-22 18:54:28 +03:00
sledgehammer999
34c29b78f9 Update the backend when a new plugin favicon is downloaded. 2017-06-15 22:32:43 +03:00
sledgehammer999
8c98c8cb3f Put copyright warning message to the search plugin dialog. 2017-06-15 22:32:42 +03:00
sledgehammer999
fc543b9db6 Display instructions when no search plugin is installed. 2017-06-15 22:32:41 +03:00
sledgehammer999
793ed7148f Remove code that expects bundled search plugins. 2017-06-15 22:32:40 +03:00
sledgehammer999
de74f9298f Remove all search plugins from repo. 2017-06-15 22:32:39 +03:00
sledgehammer999
4ab117d946 Remove possible double check of the same thing. 2017-06-15 22:32:38 +03:00
sledgehammer999
d88f0f36e0 Merge pull request #6889 from Chocobo1/lowercase
Convert all http header name constants to lowercase
2017-06-14 02:38:57 +03:00
sledgehammer999
fd05f5dec5 Merge pull request #6887 from Chocobo1/csrf_relax
[WebUI] relax CSRF defense. Closes #6882.
2017-06-14 02:37:33 +03:00
Anton-Latukha
e00c96df99 systemd service with user switch.
rm previous systemd unit service

cmake now placing new file 'qbittorrent-nox@.service.in'

systemd service now "Type=simple"
2017-06-12 22:58:10 +03:00
Eugene Shalygin
fff6640127 Merge pull request #6820 from evsh/fspathedit-visual-feedback
Add visual feedback for wrong paths in FileSystemPathEdit
2017-06-10 20:19:39 +02:00
Eugene Shalygin
574fed04fc Add visual feedback for wrong paths in FileSystemPathEdit 2017-06-10 17:09:20 +02:00
Vladimir Golovnev (Glassez)
66aeafdc63 Fix crash in ArticleListWidget
ArticleListWidget::handleArticleList() can be called inside
ArticleListWidget::handleArticleAboutToBeRemoved() and list widget
item can be removed at this point. Now we checking for it existence.
Closes #6896.
2017-06-07 18:24:43 +03:00
sledgehammer999
4a1ed9ff0e Merge pull request #6898 from Chocobo1/timeout
Fix keep alive duration was wrongly in milliseconds instead of seconds
2017-06-07 18:02:37 +03:00
Chocobo1
8419ca87f9 Fix KEEP_ALIVE_DURATION value
I intended to specify 7 seconds, which should be 7000 milliseconds
2017-06-07 21:45:47 +08:00
sledgehammer999
15fb72275a Merge pull request #6907 from thalieht/transInstaller
Add greek translation for windows installer
2017-06-07 11:53:05 +03:00
thalieht
10b10b10b8 Add greek translation for windows installer 2017-06-07 10:14:38 +03:00
sledgehammer999
d3912b5600 Merge pull request #6900 from BouRock/patch-2
Updated turkish installer
2017-06-07 02:10:15 +03:00
sledgehammer999
63566b45d0 Merge pull request #6908 from KingLucius/arabicinstaller
Installer Arabic language update
2017-06-07 02:09:55 +03:00
KingLucius
8c0577862b Installer Arabic language update 2017-06-05 18:59:31 +02:00
Mike Tzou
6f6a17341f Merge pull request #6859 from Chocobo1/cookie_select
Manage Cookies dialog improvements
2017-06-05 11:58:09 +08:00
Burak Yavuz
c13af881d9 Updated turkish installer 2017-06-04 00:48:11 +03:00
Vladimir Golovnev
c503583046 Merge pull request #6864 from glassez/rss
Improve RSS Article handling
2017-06-02 19:47:08 +03:00
Chocobo1
45c21f62f9 [WebAPI] Convert all header name constants to lowercase
This save us another transition when some day we implements HTTP/2
(which all headers are in lowercase).
2017-06-02 21:55:16 +08:00
Chocobo1
cdb8f4bc61 [WebUI] relax CSRF defense. Closes #6882.
Allow HTTP request which has neither Origin nor Referer header included
2017-06-02 21:16:06 +08:00
sledgehammer999
b5c0d90e9c Merge pull request #6842 from Chocobo1/countPieces
[TorrentCreator] Show total number of pieces. Closes #6774.
2017-06-02 08:56:10 +03:00
Chocobo1
087856d3d8 [WebUI]: Implement CSRF defense
Bump API version
2017-06-01 19:37:57 +03:00
Vladimir Golovnev (Glassez)
4021bf68f7 Use constants for article field names in RSS::Feed 2017-06-01 16:04:11 +03:00
Vladimir Golovnev (Glassez)
02f77a05dc Improve RSS article parsing
Use QLatin1String for string literals.
Use predefined constants for article hash table keys.
2017-06-01 16:04:10 +03:00
Vladimir Golovnev (Glassez)
080dd79875 Store all RSS Article data in auto downloading job 2017-06-01 16:04:04 +03:00
Vladimir Golovnev (Glassez)
475348595c Improve RSS::Article class
Store more RSS article fields.
Don't use legacy article field names in Parser code.
2017-06-01 15:57:14 +03:00
sledgehammer999
34c7465009 Merge pull request #6871 from KingLucius/googlefavicon
Fetch Favicons via google
2017-06-01 15:12:30 +03:00
sledgehammer999
ace68d4961 Merge pull request #6874 from evsh/no-old-style-cast
Disable warnings in the bundled QtSingleAppplication and fix CMake builds in Travis
2017-06-01 15:10:18 +03:00
Eugene Shalygin
72cb868224 cmake: disable warnings for bundled QtSingleApplication 2017-06-01 10:14:09 +02:00
Eugene Shalygin
c2f9f57ef4 Travis: group apt packages 2017-06-01 10:14:09 +02:00
Eugene Shalygin
8c589b8579 travis: use GCC 6 in CMake builds
GCC 4.8.4 has a bug with system includes: it does not ignore warnings
for files from system include directories. This breaks our Travis builds
due to warnings in zlib.h.
2017-06-01 10:12:27 +02:00
Eugene Shalygin
3a87af7372 travis: Use Ninja in CMake builds
make does not show compiler command line when -Werror triggers a
compilation error. Ninja does show complete command line in this case,
and the command line might be important for analysing a build error.

Additionally, final build log contains only lines for generated files
and files with compilation warnings, and is much shorter as such.
2017-06-01 10:12:27 +02:00
sledgehammer999
d3ccbe4f86 Fix format-truncation warning. 2017-06-01 01:09:25 +03:00
KingLucius
1b9882b3a3 Fetch Favicons via google 2017-05-31 22:21:25 +02:00
Mike Tzou
70d0fb741f Merge pull request #6870 from Chocobo1/ui
Fix focusing on the previously opened dialog didn't work
2017-05-31 12:26:27 +08:00
Chocobo1
4a4e3a13e6 Fix focusing on the previously opened dialog didn't work
Placing modeless dialog A on top of modeless dialog B, then open dialog B again,
the expected behavior is B on top of A.
2017-05-30 14:09:01 +08:00
Eugene Shalygin
ff80208534 Merge pull request #6868 from evsh/no-old-style-cast
Replace C-style casts with C++ ones
2017-05-29 17:47:01 +02:00
Vladimir Golovnev (Glassez)
a8bcc2ee52 Fix empty statusbar showed after app restarted 2017-05-29 18:38:17 +03:00
Eugene Shalygin
74cecb1b6c Replace C-style casts with C++ ones 2017-05-29 17:25:42 +02:00
Chocobo1
1ac7d779a7 Set expiration date for newly added cookie to +2 years from now, instead
of +99 years.

This fixes the ambiguity that users could assume the date was in the
past, but in fact it's in the future.
Ex. now date is 5/28/17, +99 years = 5/28/16, +2 years = 5/28/19
2017-05-29 14:10:47 +08:00
Chocobo1
a585b02e76 Enable alternatingRowColors for "Manage Cookie" dialog
Set editTriggers property to AllEditTriggers for easier editing.
Now a single mouse click can initiate item editing instead of double
clicking.
2017-05-29 14:10:47 +08:00
Chocobo1
d8083dd985 Allow to select & delete multiple entries in "Manage Cookies" dialog 2017-05-29 14:10:47 +08:00
Noam Gal
bd90614413 Get more RSS article data 2017-05-28 10:17:59 +03:00
Vladimir Golovnev
e3671050d1 Merge pull request #6840 from glassez/statusbar
Add show/hide statusbar option (Supersede #4029)
2017-05-27 22:22:34 +03:00
Vladimir Golovnev
146b0b91f0 Merge pull request #6845 from KingLucius/rsscrash
Fix crash when delete RSS feed
2017-05-27 16:27:08 +03:00
KingLucius
dedd31ada5 Fix crash when delete RSS feed 2017-05-27 13:52:32 +02:00
Eugene Shalygin
ae5932a573 Merge pull request #6848 from evsh/fix-piecebar-crash
Fix crash in download piece bar
2017-05-27 13:24:14 +02:00
Mike Tzou
20f6bf817e Merge pull request #6836 from Chocobo1/api
[WebAPI] Get piece information/state
2017-05-27 18:28:22 +08:00
Chocobo1
c618214061 [TorrentCreator] Show number of pieces. Closes #6774. 2017-05-27 16:37:08 +08:00
Eugene Shalygin
6d9eec0e71 Fix crash in download piece bar
When torrent size is smaller than the image width, bytes per pixel was
set to zero and code was crashing. Set it to -1 instead, as we do when
image is empty. This will disable highliting, but our algorithm does not
work in this case anyway.
2017-05-26 21:47:51 +02:00
Mike Tzou
b6080c19c2 Merge pull request #6834 from Chocobo1/cookie
[WebUI] Make cookie parsing robust
2017-05-26 23:56:35 +08:00
Vladimir Golovnev (Glassez)
c456b9a42c Refactor and improve StatusBar 2017-05-26 18:11:26 +03:00
Chocobo1
3933790bda Add new webUI API. Closes #6457.
Now getting piece information for a specific torrent is possible via:

* Returns an array of states (integers) of pieces in order. Defined as:
  "0=not downloaded", "1=downloading", "2=downloaded".
  GET /query/getPieceStates/<torrent_hash>

* Returns an array of hashes (strings) of pieces in order:
  GET /query/getPieceHashes/<torrent_hash>
2017-05-26 14:37:03 +08:00
takiz
0940a8a764 Add show/hide statusbar option 2017-05-25 16:35:21 +03:00
Chocobo1
f35a5c8085 [WebUI] Make cookie parsing robust
Previously cookie name such as "<any string>SID" will be mistakenly
accepted as "SID" session ID, this commit fixes it.

Use QString::isEmpty()
2017-05-25 18:45:07 +08:00
Chocobo1
712e6a0e5c Refactor out helper function Utils::String::unquote
Remove redundant include
2017-05-25 18:44:35 +08:00
Mike Tzou
1f9ccb44a3 Merge pull request #5196 from Chocobo1/creator_pr
Revamp Torrent creator
2017-05-24 17:40:10 +08:00
Mike Tzou
92decf83b8 Merge pull request #6330 from Chocobo1/rename
Fix renaming files is not case sensitive on Windows platform
2017-05-24 13:12:30 +08:00
Chocobo1
7eed1a108e Rename variables
Add myself to authors list
2017-05-24 11:54:42 +08:00
Chocobo1
7e87eeb2d4 Use QThread::requestInterruption() instead of m_abort flag 2017-05-24 11:54:42 +08:00
Chocobo1
60524348f0 Enlarge combobox to fix its contents 2017-05-24 11:54:42 +08:00
Chocobo1
9f2fe2b678 Move CachedSettingValue instances to header file 2017-05-24 11:54:42 +08:00
Chocobo1
a4141fd151 Simplify m_creatorThread initialization 2017-05-24 11:54:42 +08:00
Chocobo1
7de1aba092 Switch to modeless dialog
Don't close dialog after creating torrent
Show progress bar all the time
2017-05-24 11:54:42 +08:00
Chocobo1
d277696acc Add global.h file 2017-05-24 11:54:42 +08:00
Chocobo1
2e8c01d88c Use CachedSettingValue 2017-05-24 11:54:42 +08:00
Chocobo1
908481885c Enable drag n drop to create torrent on mainwindow 2017-05-24 11:54:42 +08:00
Chocobo1
386b93bb0f Fix the file size sum igonred files starting with a dot: ".name"
Make the computation iterative instead of recurisve to avoid stack overflow.

Enlarge read size to enable better performance.
Remove `QFile::close()` calls, QFile automatically close them in dtor.
2017-05-24 11:54:42 +08:00
Chocobo1
8efcc335de Switch to use SettingsStorage class 2017-05-24 11:54:42 +08:00
Chocobo1
009798f690 Follow header include rule 2017-05-24 11:54:42 +08:00
Chocobo1
6bab30a178 Revamp Torrent creator 2017-05-24 11:54:42 +08:00
Mike Tzou
ced52e3269 Merge pull request #6827 from naikel/webui_filter_fix
Fix slow filtering in WebUI
2017-05-24 00:02:22 +08:00
Naikel Aparicio
03b2decab6 Fix slow filtering in WebUI. Fixup 7aadf644e0. 2017-05-22 09:19:03 -04:00
Eugene Shalygin
47960b2592 Merge pull request #6818 from naikel/webui_fix
Cosmetic fixes for WebUI upload and download windows
2017-05-22 13:27:01 +02:00
Eugene Shalygin
b82edc561f Merge pull request #6821 from evsh/do-not-hardcode-rss-colors
Do not use hardcoded colors in RSS feed view
2017-05-22 10:58:02 +02:00
Eugene Shalygin
e99e88bbe7 Merge pull request #6811 from KingLucius/ETplugin
[Search engine] Remove ExtraTorrent plugin
2017-05-21 14:26:54 +02:00
Eugene Shalygin
72da2e7252 Do not use hardcoded colors in RSS feed view 2017-05-21 13:02:34 +02:00
Mike Tzou
494601ea75 Merge pull request #6814 from Chocobo1/defects
[QuickFix] Fix coverity issues
2017-05-21 18:55:04 +08:00
Naikel Aparicio
9fc6de77ca Cosmetic fixes for WebUI upload and download windows 2017-05-20 16:01:24 -04:00
Eugene Shalygin
659dd3285b Merge pull request #6810 from evsh/cmake
cmake: fix FindSystemd.cmake
2017-05-20 11:08:58 +02:00
Chocobo1
d8c0a40b1f Add explicit error handling when filesCount() returns negative value
Fix coverity CID 162538
2017-05-20 14:01:58 +08:00
Chocobo1
562080de69 Initialize variable
Fixes coverity CID 161628
2017-05-20 11:38:39 +08:00
Mike Tzou
c3b1c57d67 Merge pull request #6807 from Chocobo1/icon
[Quick Fix] Set icon height in html instead of js
2017-05-20 11:18:02 +08:00
Mike Tzou
7f089db942 Merge pull request #6802 from Chocobo1/size
[Quick Fix] Cleanup options dialog
2017-05-20 11:17:44 +08:00
KingLucius
ebc50a7237 remove ExtraTorrent plugin 2017-05-19 16:36:56 +02:00
Eugene Shalygin
15ef4fcc56 cmake: fix FindSystemd.cmake
Apparently, recent version of CMake made PkgConfig stuff scooped and we
need to call find_package(PkgConfig) in FindSystemd.cmake too, the call
in FindLibtorrentRasterbar.cmake, that is always used first, is not
enough now.
2017-05-19 10:44:36 +02:00
Mike Tzou
ce36a7ca62 Merge pull request #6498 from thalieht/trackerList
Trackerlist: Add toggle columns menu
2017-05-19 15:06:42 +08:00
Chocobo1
5529a7713c Set icon height in html instead of js
Fixup of d302e4fb92
2017-05-19 00:06:10 +08:00
Mike Tzou
b8d2fef653 Merge pull request #6805 from Chocobo1/icon
Fix icon too large. Closes #6804.
2017-05-18 23:54:40 +08:00
Eugene Shalygin
309ae0b4e9 Merge pull request #6803 from evsh/fix-build
Fix build error.
2017-05-18 17:35:53 +02:00
Chocobo1
d302e4fb92 [WebUI] Fix connection status icon too large. Closes #6804. 2017-05-18 23:07:40 +08:00
Eugene Shalygin
4b48f7b8d9 Fix build error. 2017-05-18 16:41:49 +02:00
Chocobo1
2702410572 Remove useless horizontal layout widget 2017-05-18 19:48:36 +08:00
Chocobo1
e24b565857 Remove unused row in "Share Ratio Limiting" group box 2017-05-18 18:40:40 +08:00
Chocobo1
fad3af27ca Partialy revert 7320ac1bc0
Reverts back options dialog size
Also removes unused tabstops
2017-05-18 18:12:32 +08:00
Mike Tzou
7302042daf Merge pull request #6799 from Chocobo1/appveyor
Tweak AppveyorCI
2017-05-18 18:02:54 +08:00
Vladimir Golovnev
927ecc7075 Merge pull request #4266 from naikel/seed_until
Share torrents until seeding time reaches an specific amount of minutes
2017-05-18 07:12:24 +03:00
Chocobo1
4ddb340a94 [AppveyorCI]: Ignore coverity_scan branch 2017-05-18 10:19:17 +08:00
Chocobo1
a2ab6fa8ab [AppveyorCI]: set clone depth to 50
This depth is same as TravisCI default
The time spent in clone was 1min ~ 3mins before
2017-05-18 10:17:38 +08:00
Vladimir Golovnev
c4ccf6b774 Merge pull request #6714 from fbriere/issue/6708-sort-categories
Fix instances where categories where still sorted case-sensitively. Closes #6708.
2017-05-17 21:47:20 +03:00
Naikel Aparicio
9ba00d7035 Implemented share limit by seeding time 2017-05-17 14:33:17 -04:00
Chocobo1
08a6c75227 Refactors
Rename variables
Refactor to return early instead of introducing a scope
Revise dialog title & messages
Refactor code logic
2017-05-17 21:28:46 +08:00
Eugene Shalygin
f4a6242711 Merge pull request #6795 from evsh/fix-file-widget
Use new signal/slot syntax in options dialog
2017-05-17 13:34:54 +02:00
Mike Tzou
0838f64311 Merge pull request #6782 from Piccirello/strict-csp
Use less permissive Content Security Policy
2017-05-17 18:47:51 +08:00
Eugene Shalygin
8ca730f0d8 Use new signal/slot syntax in options dialog 2017-05-17 12:38:27 +02:00
Mike Tzou
d80abeb10f Merge pull request #6751 from thalieht/webuiUnitPrecision
WebUI: Increase the number of digits after the decimal point
2017-05-17 12:48:03 +08:00
Eugene Shalygin
2e4c3b1901 Merge pull request #6794 from evsh/cmake
Fix cmake build.
2017-05-16 20:25:11 +02:00
Eugene Shalygin
71ce193f5a Fix cmake build broken by #6724.
PR #6724 deletes two source files, let's delete them from
CMakeLists.txt.
2017-05-16 18:55:52 +02:00
Eugene Shalygin
32551b8e6c Merge pull request #6793 from evsh/cmake
cmake: include searchengine resources
2017-05-16 18:48:12 +02:00
Mike Tzou
0f7eabfa4b Merge pull request #6781 from Piccirello/torrent-download-api-response
Include response status in upload torrent API
2017-05-17 00:39:55 +08:00
Eugene Shalygin
4d53d8d1ba Merge pull request #6785 from KingLucius/freespaceondisk
Get disk free space size via QStorageInfo instead of native API. Closes #6780
2017-05-16 18:19:16 +02:00
Eugene Shalygin
a18b3bea03 cmake: include searchengine resources 2017-05-16 18:06:56 +02:00
Vladimir Golovnev
44f8a48d73 Merge pull request #6724 from glassez/libt11
Don't use features, deprecated in libtorrent-1.1
2017-05-16 18:54:00 +03:00
Mike Tzou
3cc1b11025 Merge pull request #6783 from Chocobo1/fix
Tweak CachedSettingValue
2017-05-16 11:00:14 +08:00
KingLucius
aea887a30f cross-platform free space on disk 2017-05-15 23:05:23 +02:00
Thomas Piccirello
7cf1d844b0 Return status indicating if at least one torrent was successfully added 2017-05-15 14:30:44 -04:00
Eugene Shalygin
954f05b4a9 Merge pull request #5375 from evsh/filename-edit-widget
Add a widget for editing file names
2017-05-15 09:33:28 +02:00
Chocobo1
3fb8ff281f Tweak CachedSettingValue
* Add another constructor to save a call to proxyFunc when its not needed
  note that this call is a virtual function call
* Pass in proxyFunc by const reference
* Move get methods together
2017-05-15 12:31:26 +08:00
Thomas Piccirello
1b5852ad0b Use less permissive Content Security Policy
Adjust content order
2017-05-14 20:26:15 -04:00
Chocobo1
b9403774e6 Use QBT_EXT in all places
Cleanup headers on the way
2017-05-13 16:20:32 +08:00
Chocobo1
b18bf48014 Improve error message reported to user
Should not contain "file" or "folder", because it's not clear which type is selected.
2017-05-13 16:16:59 +08:00
Chocobo1
51e3e5438b Code formatting
Refactor
2017-05-13 16:16:59 +08:00
Chocobo1
0939875ca8 Fix renaming files is not case sensitive on Windows platform. Closes #5128. 2017-05-13 16:16:59 +08:00
Mike Tzou
a2d5d48aff Merge pull request #6730 from Chocobo1/icontray
Fix double click on system tray icon causing program to open and minimize immediately
2017-05-13 02:32:37 +08:00
Eugene Shalygin
92a7479e2d Merge pull request #4994 from evsh/availability-column
Add availability column to torrent contents
2017-05-12 17:47:51 +02:00
Eugene Shalygin
5c10a24923 Add availability column to torrent properties window 2017-05-12 17:15:00 +02:00
Eugene Shalygin
bc18bf1ab4 Add TorrentHandle::availableFileFractions() function
The function returns list of availability values for all torrent files.
The availability here is different to that one in the progress bar. Here
it shows what part of the file's pieces is available (i.e. we do not count
availability > 1 for a piece).
2017-05-12 17:14:59 +02:00
Eugene Shalygin
d5af8722a6 Add availability column to torrent content model 2017-05-12 17:14:59 +02:00
Eugene Shalygin
114c9a8421 Follow project coding style. Issue #2192. 2017-05-12 17:06:18 +02:00
thalieht
73c37cc460 Trackerlist: add "m_" to private members and make them camelCase 2017-05-11 19:15:00 +03:00
thalieht
14f50f1038 Trackerlist: Allow to toggle columns 2017-05-11 19:15:00 +03:00
thalieht
d9555a9e9d Trackerlist: Set text alignment of columns with numbers to the right 2017-05-11 16:53:31 +03:00
thalieht
5d33399000 TrackerList: Remove unnecessary deletes from the destructor 2017-05-11 16:53:31 +03:00
thalieht
33979cb41c TransferListWidget: Remove unnecessary deletes from the destructor 2017-05-11 16:53:31 +03:00
thalieht
e82a1522c8 Trackerlist: Change 0 to nullptr 2017-05-11 16:53:31 +03:00
thalieht
e00be240b0 PropertiesWidget: Change 0 to nullptr 2017-05-11 16:53:31 +03:00
thalieht
b360c5453b PropertiesWidget: Some coding style 2017-05-11 16:53:31 +03:00
thalieht
ce77ebdfe1 Coding style of whole trackerlist.h and a little in trackerlist.cpp 2017-05-11 16:53:31 +03:00
Vladimir Golovnev
f3658daf72 Merge pull request #6699 from fbriere/issue/6265-top-dirname-while-adding
Use actual top-level dirname to look for incomplete files in new torrent
2017-05-11 15:23:16 +03:00
Eugene Shalygin
a997b7d078 Merge pull request #6770 from evsh/fix-6768
Do not attempt to show detailed tooltips without torrent metadata. Closes #6768.
2017-05-11 09:51:58 +02:00
Eugene Shalygin
f211b238c4 Do not attempt to show detailed tooltips without torrent metadata. Closes #6768.
Computations for detailed tooltips are not protected against unavailable
metadata, that leads to asserts or crashes. But since those tooltips are
useless in this case, do not show them at all. Inform user that detailed
tooltip becomes available once torrent metadata are fetched.
2017-05-11 01:10:23 +02:00
Vladimir Golovnev
692e4a986a Merge pull request #6757 from glassez/rss
Forward add/remove child RSS Item event as set of add/remove Articles events
2017-05-10 16:58:49 +03:00
Mike Tzou
c44efbd965 Merge pull request #6766 from Chocobo1/fix
Cleanups
2017-05-10 21:03:54 +08:00
Vladimir Golovnev (Glassez)
fbda237cc4 Fix local IP addresses 2017-05-10 13:54:29 +03:00
Vladimir Golovnev (Glassez)
26f645bd6c Don't create redundant "buf" variable 2017-05-10 13:54:29 +03:00
Vladimir Golovnev (Glassez)
a4d2df575e Don't use deprecated torrent_handle::set_tracker_login 2017-05-10 13:54:29 +03:00
Vladimir Golovnev (Glassez)
1d3dbcb9d2 Don't use deprecated fields of torrent-related alerts 2017-05-10 13:54:29 +03:00
Vladimir Golovnev (Glassez)
5dc54aa224 Don't use deprecated torrent_status fields 2017-05-10 13:54:28 +03:00
Vladimir Golovnev (Glassez)
72a54910e9 Don't use deprecated peer_info fields 2017-05-10 13:54:28 +03:00
Vladimir Golovnev (Glassez)
a2f82be6c2 Don't use deprecated url_seed_alert fields 2017-05-10 13:54:28 +03:00
Vladimir Golovnev (Glassez)
13b04f8d2d Don't use deprecated settings_pack members 2017-05-10 13:54:27 +03:00
Vladimir Golovnev (Glassez)
bdca55f15c Use new Session Statistics feature 2017-05-10 13:24:51 +03:00
Vladimir Golovnev (Glassez)
8a6d8f3953 Use cached SessionStatus and CacheStatus 2017-05-10 13:24:37 +03:00
Vladimir Golovnev (Glassez)
cb678a254d Fix statsdialog.* coding style 2017-05-10 13:23:51 +03:00
Vladimir Golovnev (Glassez)
78d6b14fe8 Don't use deprecated torrent_info fields 2017-05-10 12:43:49 +03:00
Chocobo1
446b3307f9 Make method const 2017-05-09 14:21:55 +08:00
Chocobo1
b4baeaaf23 Pass arguemnts by const reference 2017-05-09 14:15:45 +08:00
Chocobo1
42c17ea5ce Fix argument name differ in definition & declaration 2017-05-09 14:12:36 +08:00
Chocobo1
3739bcc270 Initialize struct member 2017-05-09 13:51:12 +08:00
Chocobo1
b9e8cab1e5 Revise class memebers construction & destruction
Use nullptr
Delete m_contentDelegate on close
Remove redundant deletion of m_contentModel since parent is setup
correctly
2017-05-09 13:45:30 +08:00
Chocobo1
4d4097d819 Move editHotkey out of class definition
Also since parent is setup correctly, remove the redundant delete
2017-05-09 13:03:14 +08:00
sledgehammer999
94909d9b92 Merge pull request #6760 from evsh/fix-6759
Fix crash when entering daemon mode. Closes #6759.
2017-05-08 19:15:46 +03:00
Eugene Shalygin
5b59b18606 Fix crash when entering daemon mode. Closes #6759.
We stored reference to parameters object in main(), but that object gets
deleted when we reset Application object upon entering daemon mode.
Change reference to copy to fix that.
2017-05-08 18:01:38 +02:00
Eugene Shalygin
7320ac1bc0 Use file path edit widgets in options and add torrent dialog 2017-05-08 10:08:29 +02:00
Eugene Shalygin
30081e0356 Add widget for editing filesystem paths 2017-05-08 10:08:29 +02:00
sledgehammer999
d61fc7e820 Merge pull request #3858 from Chocobo1/screen_center
Fix dialogs didn't position on the correct screen
2017-05-07 22:17:55 +03:00
Vladimir Golovnev (Glassez)
a36848b5c0 Forward add/remove child RSS Item as add/remove Articles 2017-05-07 18:49:21 +03:00
Vladimir Golovnev (Glassez)
f8debdea67 Fix Item::unreadCountChanged() emit in wrong place 2017-05-07 18:40:42 +03:00
sledgehammer999
a4d5ac4b17 Merge pull request #4739 from sledgehammer999/web_translations
Don't duplicate translatable strings for the WebUI. Use the ones from…
2017-05-07 16:24:53 +03:00
sledgehammer999
e38829218e Merge pull request #6720 from sledgehammer999/implicit_value_for_tristate_options
Don't enforce an explicit value for TriState cmd options.
2017-05-07 16:23:01 +03:00
sledgehammer999
9f98f9f7ac Rename cmd options source files. 2017-05-07 16:20:18 +03:00
sledgehammer999
1a099fa742 Don't enforce an explicit value for TriState cmd options.
Most code from Brian Kendall <guygizmo@gmail.com> (@briankendall)
2017-05-07 14:47:37 +03:00
thalieht
e075274177 webUI: increase the number of digits after the decimal point 2017-05-05 20:09:04 +03:00
Vladimir Golovnev
706097ddda Merge pull request #6744 from glassez/fix-rss
Fix crash when delete last RSS feed. Closes #6742
2017-05-05 19:09:06 +03:00
sledgehammer999
b1f1823c65 [WebUI]Use the same layout in the Speed tab in preferences as the GUI. 2017-05-05 16:41:41 +03:00
sledgehammer999
0addeafc6b Add missing unit sizes in misc.js 2017-05-05 16:41:40 +03:00
sledgehammer999
44c5a9beff [WebUI]Use translatable strings in Statistics dialog. 2017-05-05 16:41:39 +03:00
sledgehammer999
e177799ada [WebUI]Make the context obligatory for translatable strings. Also delete duplicate strings from extra translations. 2017-05-05 03:46:33 +03:00
Vladimir Golovnev (Glassez)
76e3383650 Don't remove read articles from Unread list
Revert back old behavior (incorrect but, perhaps, more user-friendly),
when Unread list populates with "unread" articles only but then it can
contain "read" articles if they become "read" when Unread list is shown.
2017-05-04 20:37:05 +03:00
Frédéric Brière
c37d90bf6d Properly sort categories case-insensitively in filter widget. Closes #6708. 2017-05-04 10:56:45 -04:00
Frédéric Brière
722c928ab5 Turn isSpecialItem() into a CategoryFilterModel static method. 2017-05-04 10:41:36 -04:00
Vladimir Golovnev (Glassez)
2d3914c077 Prevent incorrect popullating of Unread RSS list 2017-05-04 12:39:59 +03:00
Vladimir Golovnev (Glassez)
4e37688105 Properly clear ArticleListWidget 2017-05-04 12:30:02 +03:00
Frédéric Brière
f53a403a7b Set "category" column as case-insensitive in TransferListSortModel.
(From what I can tell, it would appear that the sorting was already
case-insensitive by default.  This makes it explicit.)
2017-05-03 14:07:55 -04:00
Frédéric Brière
ec08cb5445 Leave categories order intact in "Add new torrent" dialog.
The categories are already properly sorted in AddNewTorrentDialog; this
second case-sensitive sort undid all that.

This partially addresses #6708.
2017-05-03 14:07:55 -04:00
Eugene Shalygin
fc0c28d376 Merge pull request #6737 from evsh/fix-release-build
Fix release CMake build
2017-05-03 03:14:50 +02:00
Eugene Shalygin
6540dfa528 Fix release CMake build
write() is declared with __attribute__ ((__warn_unused_result__)) and as
such we shall check its return value. Took opportunity and adjusted
error reporting a bit: if writing to stderr fails, try to write to
stdout.
2017-05-03 02:52:10 +02:00
Mike Tzou
69cb67e6e5 Merge pull request #6735 from Chocobo1/ignore
.gitignore: ignore moc_*.h
2017-05-03 01:11:58 +08:00
Chocobo1
cf462ae448 .gitignore: ignore moc_*.h 2017-05-03 00:31:48 +08:00
Chocobo1
da581dee41 Fix double click on system tray icon causing program to open and
minimize immediately

Closes #5826.
Simply ignore DoubleClick event, as it always come after Trigger
event
2017-05-03 00:14:51 +08:00
Mike Tzou
1808f0e614 Merge pull request #6734 from Chocobo1/plugin_connect
Fix signaling to checkForUpdatesFinished() failed
2017-05-02 21:56:32 +08:00
Chocobo1
3e964212ac Fix signaling to checkForUpdatesFinished() failed.
Fixup of 14e168039c.
2017-05-02 20:33:21 +08:00
Vladimir Golovnev
c1e3e2a745 Revert "Guard the flag used for deferred session configure." (#6733)
This reverts commit 5cbc7b16c0.
2017-05-02 14:39:47 +03:00
Mike Tzou
7bc81ead8c Merge pull request #6727 from Chocobo1/gzip
Fix stack overflow in Utils::Gzip::decompress
2017-05-02 15:38:42 +08:00
Chocobo1
7d1ac06ce2 Fix stack overflow in Utils::Gzip::decompress
Anyway, use std::vector to allocate memory on the heap (in compress() too)
2017-05-02 12:47:07 +08:00
Chocobo1
1fbf121506 Fix CookiesDialog position 2017-05-01 16:02:09 +08:00
Chocobo1
f36e891010 Fix trackersadditiondlg position 2017-05-01 15:32:08 +08:00
Chocobo1
bd2f69a9d6 Fix peeradditiondlg position 2017-05-01 15:32:08 +08:00
Chocobo1
6f6fe626a1 Fix shutdownconfirm position 2017-05-01 15:32:08 +08:00
Chocobo1
fb9ebce9c6 Fix pluginselectdlg position
Fix peerlistwidget position
Fix mainwindow position
2017-05-01 15:32:08 +08:00
Chocobo1
2258e4d5ed Fix automatedrssdownloader position 2017-05-01 15:32:08 +08:00
Chocobo1
73047e3c84 Cleanup downloadfromurldlg, statsdialog 2017-05-01 15:32:08 +08:00
Chocobo1
933f9f1451 Fix optionsdlg position 2017-05-01 15:31:58 +08:00
Chocobo1
46abe42a54 Fix deletionconfirmationdlg position
Fix autoexpandabledialog position
Fix previewselect position
2017-05-01 15:30:41 +08:00
Chocobo1
a902eb6b2b Fix speedlimitdlg position 2017-05-01 15:30:38 +08:00
Chocobo1
de54fa2c30 Fix addnewtorrentdialog position
Fix messageBox position
2017-05-01 14:48:10 +08:00
Chocobo1
7eaa5987c8 Fix dialogs didn't position on the correct screen which qBittorrent window is on. Closes #1690, #2474, #3538. 2017-05-01 14:33:25 +08:00
sledgehammer999
67f44e03a2 Merge pull request #6689 from briankendall/fix_macos_addnewtorrentdialog_bug
Fix for macOS-specific bug in AddNewTorrentDialog
2017-04-30 22:29:51 +03:00
sledgehammer999
4ea9a2f07e Merge pull request #5532 from briankendall/torrent_command_line_arguments
Command line arguments for specifying options when adding torrents
2017-04-30 22:25:21 +03:00
sledgehammer999
90c6bb6054 Merge pull request #6524 from Chocobo1/dpi
Opt-in DPI scaling
2017-04-30 21:25:57 +03:00
Brian Kendall
eba41978b0 Added command line arguments for specifying options when adding torrents
Arguments include adding torrents as paused/started, skiping hash check, setting category, downloading in sequential order, downloading first and last pieces first, and skipping the 'add new torrent' dialog. Added TriStateBoolOption class for specifying options that don't have a default value when unused (e.g. add-paused). Also improved command line usage text to include more information, have better organization, and not exceed 80 columns in width. Also also added firstLastPiecePriority field to BitTorrent::AddTorrentData, and modified TorrentHandle so that if first/last piece priority should be on, it will be toggled on after the torrent's metadata has loaded.
2017-04-30 14:22:30 -04:00
Chocobo1
6bcb07649e Setup DPI at startup 2017-05-01 02:21:44 +08:00
Chocobo1
893ce32f1d Remove curly braces 2017-05-01 00:45:27 +08:00
Chocobo1
a1cad86bbf Remove workaround
Upstream confirmed bug fixed in Qt 5.2
2017-05-01 00:45:09 +08:00
Chocobo1
b3c73b7868 Refactor 2017-05-01 00:37:47 +08:00
sledgehammer999
0a5bb6685f Merge pull request #6654 from Chocobo1/persistence
Webui server fixes
2017-04-30 16:34:23 +03:00
Frédéric Brière
e8f6149a6d findIncompleteFiles(): Replace dir listing with individual checks. Closes #6265.
Looking for incomplete files in a new torrent by using a pre-generated
directory listing presents several disadvantages:

  - It requires us to extract the top-level directory name (in case it
    was renamed).
  - It requires us to know whether the top-level directory was stripped.
  - In the latter case, it may result in recursively traversing the
    entire contents of all downloaded torrents.

Calling QFile::exists() individually for each file solves all these
issues.

In so doing, the handling of single-file and multiple-file torrents are
rendered pretty much identical, and can therefore be merged.
2017-04-30 09:26:58 -04:00
Mike Tzou
e91a5f6a5a Merge pull request #6701 from Chocobo1/webui
WebUI: Fix checkbox hidden
2017-04-30 13:35:02 +08:00
Chocobo1
5e50d8ed91 WebUI: Fix checkbox hidden. Closes #6642. 2017-04-29 23:12:04 +08:00
Eugene Shalygin
172991e068 Merge pull request #6703 from evsh/cmake
cmake: set warning and error compiler options
2017-04-29 14:11:09 +02:00
Eugene Shalygin
c4e16aa820 cmake: set warning and error options
The set is far from perfect, but guards against common errors with GCC.
2017-04-29 13:30:28 +02:00
Vladimir Golovnev
93df0ef1d1 Move AddTorrentParams to its own header (#6712)
* Move AddTorrentParams to its own header

* fixup! Move AddTorrentParams to its own header
2017-04-29 11:49:40 +03:00
Vladimir Golovnev
70f1153413 Merge pull request #6694 from glassez/remove-temp
Remove torrent temp folder when it becomes unneeded
2017-04-29 11:44:15 +03:00
Vladimir Golovnev (Glassez)
160b7ff2d3 Remove torrent temp folder when torrent is deleted 2017-04-28 16:52:16 +03:00
Vladimir Golovnev (Glassez)
c56b4a25bc Remove torrent temp folder if it becomes unneeded 2017-04-28 12:30:48 +03:00
Eugene Shalygin
818dcce462 Fix formatting in CONTRIBUTING.md (#6704)
Fix formatting in CONTRIBUTING.md
2017-04-27 18:20:27 +02:00
Eugene Shalygin
98415917c6 cmake: use environment variable LIB on Windows
Append its value to CMAKE_LIBRARY_PATH to simplify life of on Windows.
2017-04-27 14:34:30 +02:00
Eugene Shalygin
71cf25ae99 Replace variable length array with std::vector in print_stacktrace()
The function does memory allocation from heap anyway, so should not be
a problem to use STL container.
2017-04-27 14:32:02 +02:00
Vladimir Golovnev
c50cee8feb Merge pull request #6686 from glassez/fix-nullptr
Fix RSS GUI bugs
2017-04-27 12:55:44 +03:00
Vladimir Golovnev (Glassez)
a78a1a9c64 Add invariant checking in ArticleListWidget 2017-04-27 12:31:18 +03:00
sledgehammer999
74fb070e78 Merge pull request #6693 from glassez/drop-qt4
Drop rest of qt4 support code
2017-04-26 15:12:55 +03:00
Vladimir Golovnev (Glassez)
335443e6a0 Drop QThread::msleep wrapper 2017-04-26 10:44:47 +03:00
Vladimir Golovnev (Glassez)
d5d946dd66 Drop Qt4 related settings from QMake project 2017-04-26 08:53:47 +03:00
sledgehammer999
b71ee80ecd Optimize P2P filter parsing too. 2017-04-26 02:33:57 +03:00
sledgehammer999
fd7e69e1e0 Add helper function for logging messages. 2017-04-26 02:33:56 +03:00
sledgehammer999
51cf6bd2a5 Optimize DAT filter parsing. Parse in memory and in place instead of copying strings around. 2017-04-26 02:33:55 +03:00
Brian Kendall
59e6a4298d Fixed macOS-specific bug in AddNewTorrentDialog
Because AddNewTorrentDialog is a sheet in macOS, repositioning it causes bad things to happen, particularly if the main dialog is on a secondary monitor.
2017-04-25 13:34:06 -04:00
Vladimir Golovnev (Glassez)
6764de8ef0 Fix ArticleListWidget adds new articles in wrong order 2017-04-25 13:15:11 +03:00
Vladimir Golovnev (Glassez)
71814885aa Fix ArticleListWidget doesn't clear properly 2017-04-25 13:14:55 +03:00
Vladimir Golovnev (Glassez)
abfcfb5af0 Fix possible null pointer dereference 2017-04-25 13:01:34 +03:00
sledgehammer999
8f6e04d779 Using new IP parser provided by @evsh. It is faster and uses less memory.
Class `DATIPv4Parser` was written by Eugene Shalygin <eugene.shalygin@gmail.com> (evsh on github).
2017-04-25 04:43:30 +03:00
sledgehammer999
f53dab8ad4 Output log messages for ip filter parsing errors. 2017-04-25 04:43:29 +03:00
sledgehammer999
05ab9fc355 Optimize ip filter parsing. 2017-04-25 04:43:22 +03:00
Mike Tzou
df1a8bfdea Merge pull request #6685 from Chocobo1/coverity
TravisCI: only allow coverity build job when `build_system=qmake`
2017-04-25 01:50:35 +08:00
Chocobo1
46ac5e0ee2 TravisCI: only allow coverity build job when build_system=qmake 2017-04-25 01:03:08 +08:00
Vladimir Golovnev (Glassez)
3a3125ea2b Fix remove oldest article 2017-04-24 16:50:28 +03:00
Vladimir Golovnev
e433cbab97 Merge pull request #6677 from glassez/fix-create-subfolder
Allow strip root folder using default settings
2017-04-24 12:21:53 +03:00
Vladimir Golovnev (Glassez)
c799923d7d Allow strip root folder using default settings 2017-04-24 12:03:35 +03:00
Vladimir Golovnev (Glassez)
711be50e9c Fix AddTorrentData field types 2017-04-24 11:59:16 +03:00
Mike Tzou
4c6059c352 Merge pull request #6673 from Chocobo1/manifest
Disable Qt embedding manifest automatically
2017-04-24 12:03:32 +08:00
sledgehammer999
032eb12585 Remove whitespace. 2017-04-24 04:25:49 +03:00
sledgehammer999
3cdc6fb978 Fix compiler warnings. 2017-04-24 04:24:32 +03:00
Mike Tzou
b894d886ec Merge pull request #6669 from wevsty/master
update chinese windows installer translation
2017-04-23 23:52:37 +08:00
Chocobo1
e1adfde66e Disable Qt embedding manifest automatically
Embedding manifest fails for me after upgrading to VS2017, this fixes it.
2017-04-23 21:31:31 +08:00
Eugene Shalygin
c865ba2803 Merge pull request #6671 from zywo/cmake-build
Fix CMake build
2017-04-23 14:16:39 +02:00
Vladimir Golovnev (qlassez)
f259bde275 Fix "Create subfolder" in AddNewTorrentDialog 2017-04-23 15:05:03 +03:00
zywo
51104a9fb4 Fix CMake build 2017-04-23 09:29:27 +01:00
Vladimir Golovnev
a886dbf8ab Merge pull request #6627 from glassez/rss2
Redesign RSS subsystem
2017-04-23 09:17:39 +03:00
Vladimir Golovnev (Glassez)
989a70fe60 Redesign RSS subsystem 2017-04-23 09:03:46 +03:00
wevsty
98cec6a495 update chinese windows installer translation 2017-04-23 05:11:18 +08:00
Eugene Shalygin
090a2edc1a Merge pull request #6651 from evsh/fix-config-dir-on-windows
Migrate from platform-specific code in Private::DefaultProfile to QStandardPaths
2017-04-22 13:09:17 +02:00
Eugene Shalygin
41628dd5f6 Merge pull request #6662 from ngosang/se_plugins
[Search engine] Update, remove and add plugins
2017-04-22 11:32:30 +02:00
ngosang
fa64f33c2a [Search engine] Add btdb plugin 2017-04-21 23:42:07 +02:00
Eugene Shalygin
ead1f6e1f6 Merge pull request #5264 from evsh/plugin-version-class
Use explicit class for search plugin versions
2017-04-21 14:06:50 +02:00
Eugene Shalygin
14e168039c Use explicit class for search plugin versions 2017-04-21 09:47:08 +02:00
ngosang
5d0cfc7475 [Search engine] Update legittorrents plugin 2017-04-20 21:17:24 +02:00
ngosang
339b35c369 [Search engine] Remove mininova plugin 2017-04-20 21:00:59 +02:00
ngosang
91e7e94820 [Search engine] Update demonoid plugin 2017-04-20 20:56:23 +02:00
Eugene Shalygin
8218ec1bd1 Merge pull request #6660 from evsh/cmake
cmake: use import libraries for Boost and OpenSSL in Libtorrent find module
2017-04-20 16:31:24 +02:00
Chocobo1
cfb07b3d5b TravisCI: Install latest zlib & cleanups
Remove trailing semicolon, seems that isn't needed now
Switch builds to container-based infrastructure
Move similar code blocks together
2017-04-20 22:26:35 +08:00
Chocobo1
0b5de9ff54 Temporary revert to the old behavior. 2017-04-20 22:26:35 +08:00
Chocobo1
a35c6426ab Specify lib requirement: zlib >= 1.2.5.2 2017-04-20 22:26:35 +08:00
Chocobo1
617f19e599 Revise Utils::Gzip::decompress
Rename from uncompress to decompress
Change signature
Use proper casting
Use larger buffer for the output of inflate()
Reserve 1 MBytes for output buffer
Change function signature
2017-04-20 22:26:35 +08:00
Chocobo1
302c8ba850 Revise Utils::Gzip::compress code
Change signature
Add ZLIB_CONST define to make  z_stream.next_in const
Cast to zlib defined type Bytef*
Set memLevel to 9 in deflateInit2() for maximum performance
Revise compression loop
On returning false, free memory correctly by calling deflateEnd()
Reserve space by the estimation of deflateBound()
2017-04-20 22:24:50 +08:00
Chocobo1
94b496354b Rewrite rules for gzipping http response content 2017-04-20 22:22:17 +08:00
Chocobo1
4600e679d1 Implement robust acceptsGzipEncoding()
Adhere more to http/1.1 standard
2017-04-20 22:22:17 +08:00
Chocobo1
129172453b Fix "Content-Encoding" header is always created.
Was side effect of operator[]
2017-04-20 22:22:17 +08:00
Chocobo1
7d36c81949 Cleanup Http::responseGenerator()
Add CRLF definition
Rewrite loop using iterator, slightly more efficient
Rename variables
2017-04-20 22:22:17 +08:00
Chocobo1
6cb2f05a6c Demote to helper function
Rename function
2017-04-20 22:22:17 +08:00
Chocobo1
829e1399ca Convert Qstring to char arrays
Cleanup header
Sort constants
2017-04-20 22:22:17 +08:00
Chocobo1
4b2266a8e2 Send Date http header
It's not strict required but often expected.
change class to namespace
cleanup header
2017-04-20 22:22:17 +08:00
Chocobo1
9496b2a159 Always send Content-Length header.
Because without it, HTTP/1.1 (with persistence connection) clients will
keep waiting for more data.
2017-04-20 22:22:17 +08:00
Chocobo1
0b28fb6c6b Implement http persistence connection
Max simultaneous connection limit set to 500
This also release allocated memory of Connection instances at runtime instead of at program shutdown.
2017-04-20 22:22:14 +08:00
Eugene Shalygin
41a63718c9 cmake: use import libraries for Boost and OpenSSL in Libtorrent find module 2017-04-20 15:18:04 +02:00
Eugene Shalygin
01325ee7de Merge pull request #6658 from evsh/cmake
cmake: fix typo in the manifest file name
2017-04-19 17:37:05 +02:00
Eugene Shalygin
f99ba03177 cmake: fix typo in the manifest file name 2017-04-19 17:06:44 +02:00
Eugene Shalygin
b06080e2e7 Replace platform-specific code in Private::DefaultProfile with QStandardPaths.
This should also fix Profile::location(SpecialFolder::Config) on
Windows.
2017-04-19 12:51:07 +02:00
sledgehammer999
ae0a9d74c4 Merge pull request #6487 from Chocobo1/ui
GUI polish
2017-04-18 04:01:13 +03:00
sledgehammer999
2045c38005 Merge pull request #6623 from evsh/cmake
CMake 3.8 compatibility and refactoring
2017-04-17 17:38:08 +03:00
Eugene Shalygin
4e1b7c3b87 Remove generated include from headers
Not only fixes compilation with CMake 3.8 (without messing with include
paths) but makes sources cleaner.
2017-04-17 16:31:19 +02:00
Eugene Shalygin
34798399da cmake: fixes for cmake 3.8
AUTOUIC seems to became stricter.
2017-04-17 16:27:24 +02:00
Eugene Shalygin
97d52668cc travis: fix CMake + OSX build
Brew changed installation dir for Qt, and we have to change it in our
workaround symlinks too.
2017-04-17 16:27:24 +02:00
Eugene Shalygin
c32cee8098 travis: remove redundant 'cd' command 2017-04-17 16:27:24 +02:00
sledgehammer999
018574e546 Merge pull request #6475 from OpenGG/master
[WebUI-API] Add "skip_checking" and "paused" to "/command/download" and "/command/upload"
2017-04-17 17:12:24 +03:00
sledgehammer999
48b0cf8a48 Merge pull request #6621 from Chocobo1/webui
Webui: refactor
2017-04-17 17:08:25 +03:00
sledgehammer999
ae0ec716cb Fix inverted check when applying the IP filter. 2017-04-17 17:07:12 +03:00
sledgehammer999
c27108c97a Merge pull request #6630 from evsh/fix-6454
Start up torrents after UI was created. Fixes #6454.
2017-04-17 16:44:03 +03:00
sledgehammer999
56436d3f97 Merge pull request #6626 from evsh/fix-desktop-filename
Rename .desktop file to match executable name. Fixes #6625.
2017-04-17 16:03:06 +03:00
sledgehammer999
d702b32e53 Merge pull request #5465 from glassez/strip_root_folder_v2
Allow to strip root folder. Closes #588, closes #5433
2017-04-17 15:48:28 +03:00
Vladimir Golovnev (Glassez)
22178f9997 Fix strip torrent root folder 2017-04-15 17:33:20 +03:00
Vladimir Golovnev (Glassez)
6d7d566cdf Fix TorrentHandle rootPath() and contentPath() methods 2017-04-15 10:11:53 +03:00
Vladimir Golovnev (Glassez)
d413bc65ef Improve strip torrent root folder
Fix issue when you rename the "root item" in the "Add New Torrent" dialog
and uncheck "Create subfolder", it will create the subfolder with the
renamed name.
Fix PropertiesWidget first folder is expanded after app restart.
Strip root folder if torrent was added via magnet link.
Fix crash when you get name of torrent without metadata.
2017-04-15 10:11:53 +03:00
sledgehammer999
4b2d8a7941 Setting for creating subfolder on multifile torrents. Closes #588. 2017-04-15 10:11:53 +03:00
Eugene Shalygin
21a72c651f Start up torrents after UI was created. Fixes #6454.
Commit dd0537d changed torrents startup code adding alerts processing
into it. Therefore alerts were processed before UI code subscribed to
signals and therefore part of alerts was not reflected in the UI.

Thus here we do not start torrents in Session constructor, but do that
from Application::exec() after UI was constructed and is ready to process
signals.
2017-04-14 00:58:43 +02:00
Eugene Shalygin
ecd67b9d75 Rename .desktop and appdata files to match executable name. Fixes #6625. 2017-04-12 17:26:12 +02:00
sledgehammer999
07af8c9648 Merge pull request #5214 from evsh/adjustable-config-name
Implement configurations and portable mode. Closes #465
2017-04-12 02:20:34 +03:00
Eugene Shalygin
a8d95dd8bd Save relative paths in fastresume files
Conditionally change absolute paths to relative in the fastresume data files.
The condition is specified by user via a command line parameter and
paths are relative to the profile dir.

On Windows the convertion to relative path is performed if the path and
the profile are on the same drive only.
2017-04-12 00:51:37 +02:00
Eugene Shalygin
0710a59bf5 Refactor parameters parsing
Introduce classes that encapsulate parameter names and parsing schemes
from command line and from environment variables.
2017-04-12 00:50:33 +02:00
Eugene Shalygin
0bf7fa15c1 Replace wrappers in base/utils/fs.h with Profile::SpecialFolders::location() 2017-04-12 00:50:33 +02:00
Eugene Shalygin
44b6cb28f6 Add environment variables usage description to the help text 2017-04-12 00:50:33 +02:00
Eugene Shalygin
d5414631c3 Initialise QBtCommandLineParameters members from environment
This allows to pass options via environment variables. The variable name
is constructed from parameter name by transforming the name to upper
case and prefixing "QBT_".
2017-04-12 00:50:33 +02:00
Eugene Shalygin
0f746ffd5a Add support for different configurations. Partially closes #465
It may be useful to have different configurations either for portable
versions or for debugging purposes. To implement this we add two
options, avaliable via command line switches
1. An option to change configuration name ("--configuration"). The name
supplied via this option is appended to
QCoreApplication::applicationName() to form "qBittorrent_<conf_name>"
name for the configuration files.
2. An option to provide a path do directory where all the settings are
stored (kind of profile directory). There is a shortcut "--portable"
which means "use directory 'profile' near the executable location".

In order to implement that we have to perform initialisation of the
profile directories before the SettingStorage and Preferences singletones
are initialised. Thus, options parsing shall be performed without defaults
read from preferences.
2017-04-12 00:50:28 +02:00
sledgehammer999
f3338263ea Merge pull request #6493 from Chocobo1/editorconfig
Add .editorconfig
2017-04-11 23:20:58 +03:00
sledgehammer999
44996b4c6b Merge pull request #6624 from schnurlos/patch-5
Update of german.nsi
2017-04-11 23:18:56 +03:00
schnurlos
bbe8184abe Update of german.nsi
Translation of 64-bit text done.
2017-04-11 18:52:27 +02:00
Chocobo1
d1ee54f6ea Refactor: move methods under the same #if section. 2017-04-11 23:16:16 +08:00
sledgehammer999
f4bd3d2868 Merge pull request #6620 from evsh/uk-installer-translation
Create Ukrainian translation for the Windows installer.
2017-04-11 15:38:08 +03:00
Chocobo1
7f346b49a7 Refactor: move the validation of certificates & key functions under Server class
Rename method
Add log messages
2017-04-10 21:18:59 +08:00
Chocobo1
05d8c46bb0 Rename class variables 2017-04-10 21:07:08 +08:00
Chocobo1
35ab86d32f Refactor: group port forwarding code together
Unify log message
2017-04-10 20:14:19 +08:00
Eugene Shalygin
ec274157d7 Create Ukrainian translation for the Windows installer. 2017-04-10 12:42:31 +02:00
sledgehammer999
6ad8a4d8b1 Merge pull request #6606 from ngosang/es_installes_translation
Update Spanish translation for the installer
2017-04-07 16:43:18 +03:00
ngosang
5490c54f8d Update Spanish translation for the installer 2017-04-07 12:49:10 +02:00
sledgehammer999
fe056e7fc0 Merge pull request #6599 from Chocobo1/defines
Fix NTDDI_VERSION define
2017-04-06 14:25:22 +03:00
sledgehammer999
e40444d1ad Bump API_VERSION and API_VERSION_MIN to 13. 2017-04-06 02:03:44 +03:00
sledgehammer999
50f0ba4f7a Sync translations of .desktop file from Transifex. 2017-04-06 02:02:01 +03:00
Chocobo1
84cdd2e061 Bump _WIN32_IE in cmake build 2017-04-06 06:51:24 +08:00
sledgehammer999
be7facdfaf Sync translations from Transifex and run lupdate. 2017-04-06 01:50:52 +03:00
Chocobo1
ca8ea73ddb Fix NTDDI_VERSION define
Fixup of 5958585e3a
2017-04-06 06:50:42 +08:00
sledgehammer999
1111ca9d90 Merge pull request #6548 from Chocobo1/cookie
Fixes for AbstractWebApplication
2017-04-05 18:37:51 +03:00
sledgehammer999
a79099fc52 Merge pull request #6597 from vlakoff/translation
Update French translation for the installer
2017-04-05 18:34:22 +03:00
Chocobo1
812bd4c83a Uncrustify 2017-04-05 17:39:44 +08:00
Chocobo1
a86f189f53 Relax comparsion for floating point 2017-04-05 17:36:47 +08:00
Chocobo1
59556dfc6a Cleanup & refactor 2017-04-05 17:36:47 +08:00
Chocobo1
86e82c71e5 Setup parent pointer
Rely on Qt to do the delete, since the parent ownership is setup
correctly.
2017-04-05 17:36:36 +08:00
sledgehammer999
851fb8d3de Fix running the uninstaller if the user chose a different path in the installer. Closes #6080. 2017-04-05 03:04:59 +03:00
vlakoff
2e3aaf3428 Update French translation for the installer 2017-04-04 18:45:07 +02:00
sledgehammer999
f3d6ae3433 Merge pull request #6590 from FranciscoPombal/webui_remaining
fixed "remaining" column in WebUI
2017-04-04 01:35:59 +03:00
sledgehammer999
4a0244ae88 Better 64-bit handling in the installer. 2017-04-04 01:27:12 +03:00
sledgehammer999
40948ab652 Merge pull request #6519 from evsh/cmake
cmake: fix build and add build configurations for Travis
2017-04-04 01:24:59 +03:00
sledgehammer999
b2528f7573 Merge pull request #6581 from Chocobo1/set_location
Fix cancel "Set location" causes files move to installation dir
2017-04-04 01:15:27 +03:00
sledgehammer999
d4f30030a6 Merge pull request #6565 from Chocobo1/defines
Add NTDDI_VERSION define
2017-04-04 01:09:51 +03:00
sledgehammer999
027607490a Merge pull request #6584 from Chocobo1/nsis
NSIS: set exit code to 0 on install/uninstall success
2017-04-04 01:09:29 +03:00
FranciscoPombal
829ad2e1e6 fixed "remaining" column in WebUI
the key had the wrong name. In the js code, the expected key is "amount_left" and not "remaining".
2017-04-03 16:20:01 +01:00
Chocobo1
b4d474b770 NSIS: set exit code to 0 on install/uninstall success
Closes #6129.
2017-03-31 14:49:23 +08:00
Chocobo1
d2e02605e9 NSIS: trim whitespaces 2017-03-31 14:48:07 +08:00
opengg
b271fa9f00 [WebUI] Add skip_checking and paused to /command/download and /command/upload 2017-03-31 14:05:19 +08:00
Chocobo1
5de505acfe Cleanup headers
Remove unused headers
Sort header includes
2017-03-30 16:45:11 +08:00
Chocobo1
faaafce35b Fix cancel "Set location" causes files move to installation dir.
Closes #6568.
2017-03-30 16:45:10 +08:00
Chocobo1
0d3c670728 Add log message 2017-03-30 16:45:10 +08:00
Chocobo1
b779330163 code formatting 2017-03-28 17:38:04 +08:00
Chocobo1
5958585e3a Add NTDDI_VERSION define 2017-03-28 17:38:04 +08:00
sledgehammer999
5fb3b4639c Merge pull request #6517 from regs01/patch-1
NSIS ManifestDPIAware
2017-03-22 22:45:18 +02:00
sledgehammer999
3dba24bfe0 Merge pull request #6527 from epicgirl1998/patch-1
Remove extra space between category names and torrent counts
2017-03-22 20:00:50 +02:00
sledgehammer999
10f2fbdd17 Merge pull request #6554 from sheeit/patch-1
Fixed Markdown formatting for headers in CODING_GUIDELINES.md
2017-03-22 19:57:58 +02:00
sheeit
ec0771448c Fixed Markdown formatting for headers 2017-03-22 15:49:19 +01:00
Chocobo1
272d53fdf8 Set cookie SID value to empty on logout
Set cookie SID expiration date to 1 day in the past on logout
2017-03-22 17:22:10 +08:00
Chocobo1
4e48408eaa Fire up the timer to clean inactive sessions 2017-03-22 17:21:10 +08:00
Chocobo1
e26b30a5f4 Refactor: initialize class variable directly 2017-03-22 17:20:28 +08:00
Chocobo1
e4d6fe2d02 Refactor: reorder headers 2017-03-22 17:20:27 +08:00
Chocobo1
e9bd75f4e1 Set HttpOnly attribute to SID cookie 2017-03-21 15:24:41 +08:00
Eugene Shalygin
7d19ee2e59 travis: add cmake build 2017-03-20 22:18:36 +01:00
Eugene Shalygin
8a106314ff travis: remove Qt4 leftover 2017-03-20 19:47:21 +01:00
Eugene Shalygin
17e6eba50a travis: use apt addon for libtorrent and Qt packages 2017-03-20 19:47:21 +01:00
Eugene Shalygin
b2ff058bc0 cmake: fix OSX bundle creation 2017-03-20 19:47:21 +01:00
Eugene Shalygin
5c0bf86405 cmake: remove qt4 leftover 2017-03-20 19:07:52 +01:00
epicgirl1998
f904cfa32d Remove extra space
fixes https://github.com/qbittorrent/qBittorrent/issues/6523
2017-03-17 03:43:49 +02:00
regs01
6fae4e6e5c Update options.nsi
dpi-aware installer
2017-03-15 08:33:27 +03:00
opengg
db3158c410 [WebUI] bugfix: RequestParser::splitMultipartData drop extra trailing newline. 2017-03-11 01:26:22 +08:00
Chocobo1
5a57f2ef64 Add basic support for EditorConfig 2017-03-09 20:52:20 +08:00
sledgehammer999
9eb01fbe4d Merge pull request #6489 from evsh/fix-fileguard
Fix TorrentFileGuard::setAutoRemove() recursion problem. Closes #6488.
2017-03-08 12:18:58 +02:00
sledgehammer999
61efc76b82 Merge pull request #6490 from evsh/cmake
Fix CMake build
2017-03-08 12:18:38 +02:00
Eugene Shalygin
3091e03a95 Fix CMake build 2017-03-08 09:12:49 +01:00
Eugene Shalygin
3752d112fb Fix TorrentFileGuard::setAutoRemove() recursion problem. Closes #6488.
The problem was created during Qt 4 drop, when FileGuard was promoted
from a member to a base class. The function was blindly changed.
2017-03-08 09:05:58 +01:00
Chocobo1
a16c557137 Always draw background 2017-03-08 14:36:42 +08:00
Chocobo1
2b2b3a4fe7 Fix downloaded/uploaded columns were not highlighted properly when selected.
Refactor
2017-03-08 14:36:09 +08:00
sledgehammer999
bc910798da Indicate bitness in stackstrace and about dialog. Closes #6172. 2017-03-08 01:01:17 +02:00
sledgehammer999
c37ff51004 Some improvements in travis.yml for macOS. Closes #6089. 2017-03-08 00:50:11 +02:00
sledgehammer999
a7dcf20ed1 Fix state of IP filter widgets. 2017-03-08 00:30:54 +02:00
sledgehammer999
729fbb2e50 Change named of getter function. 2017-03-08 00:16:25 +02:00
sledgehammer999
aa51907387 Merge pull request #6369 from magao/issue6367
Use Perl-compatible regexes for RSS rules. Closes #6367.
2017-03-08 00:04:17 +02:00
sledgehammer999
be60b3e046 Change the user-agent format in the session.cpp too. 2017-03-07 23:41:29 +02:00
sledgehammer999
147f4d76e2 Merge pull request #6445 from Chocobo1/fix
Follow http user-agent format
2017-03-07 23:38:14 +02:00
sledgehammer999
7a6da3d3ce Merge pull request #6479 from Chocobo1/qt4
Remove remainings of Qt4
2017-03-07 23:28:56 +02:00
sledgehammer999
b90db12ba0 Use a QTreeView and a sort proxy in the manually banned IP list to have a consistent sort order with QStringList::sor(). 2017-03-07 23:16:51 +02:00
sledgehammer999
431658bee6 Fix race condition where there was a chance to allow all ips between reparsings of the ip filter. 2017-03-07 23:16:50 +02:00
sledgehammer999
14513cd81f Allow edit of manually banned IPs regardless if an IP filter has been set. 2017-03-07 23:16:43 +02:00
sledgehammer999
5084c01c2b Merge pull request #5877 from dzmat/to_pull_request
locally banned IP list managment (Closes #1837 )
2017-03-07 23:14:20 +02:00
sledgehammer999
140187649d Merge pull request #6473 from FranciscoPombal/stats_webui
Implement statistics window in web UI
2017-03-07 22:51:57 +02:00
sledgehammer999
f3cbb7f9da Merge pull request #6384 from glassez/safe-macros
Remove exception suppressing from torrenthandle.cpp
2017-03-07 22:50:06 +02:00
sledgehammer999
b69b6d1f55 Revert "Set default locale". Closes #6436 and #6459.
This reverts commit 75ef6356d3.
2017-03-07 15:35:42 +02:00
Vladimir Golovnev (Glassez)
79e8f69fb6 Remove exception-suppress macros
Remove SAFE_* macros from TorrentHandle class.
These macros using seems to be unneeded.
2017-03-07 15:04:57 +03:00
Chocobo1
fa2128cbae Replace Utils::String::fromStdString() by QString::fromStdString() 2017-03-07 19:42:44 +08:00
sledgehammer999
610922e3dc Update stuff in appdata.xml and run 'appstream-utl upgrade' on it. 2017-03-06 20:58:03 +02:00
sledgehammer999
9839ef7292 Add keywords to the .desktop file. 2017-03-06 20:58:02 +02:00
Chocobo1
87384ca2a2 Replace Utils::String::toHtmlEscaped() by QString::.toHtmlEscaped() 2017-03-07 00:03:53 +08:00
Chocobo1
ffdcfe9686 Replace Utils::String::toStdString() by QString::toStdString() 2017-03-06 23:58:38 +08:00
Chocobo1
7539bee5c5 Remove remaining QBT_USES_QT5 defines.
Fixup of e64bb1de8c.
2017-03-06 23:47:07 +08:00
dzmat
59de1af31b implemented UI for managment of locally banned IP list (Closes #1837 ) 2017-03-06 19:40:34 +07:00
Chocobo1
70edf84d46 Add comment 2017-03-06 14:42:32 +08:00
Chocobo1
2091dfaa69 Follow http user-agent format
Add version variable without the starting "v"
2017-03-06 14:42:32 +08:00
Chocobo1
cb1646be32 Prepend QBT_ for preprocessor variables 2017-03-06 13:41:58 +08:00
FranciscoPombal
1ce71fc63e Implement statistics window in web UI 2017-03-06 03:05:18 +00:00
sledgehammer999
fc49856857 Merge pull request #6391 from Chocobo1/cert
Allow QSsl::Ec as private key format
2017-03-06 01:22:09 +02:00
sledgehammer999
fa1149e1f2 Remove remnant of qt4 version checking. 2017-03-06 00:53:25 +02:00
sledgehammer999
8b6d7ab809 Merge pull request #6266 from evsh/drop-qt4
Drop qt4
2017-03-06 00:50:19 +02:00
Eugene Shalygin
008d7dbedc Raise minimal Qt version to 5.5.1 2017-03-05 22:24:59 +01:00
Eugene Shalygin
e64bb1de8c Drop Qt 4 support 2017-03-05 22:24:59 +01:00
sledgehammer999
60998a68eb Merge pull request #6417 from Chocobo1/manifest
Embed manifest when compiling with MSVC
2017-03-05 19:40:35 +02:00
sledgehammer999
922fec44d2 Merge pull request #6447 from buinsky/master
WebUI: Improve performance of updating 'progress' column
2017-03-05 14:46:30 +02:00
sledgehammer999
22989a436e Merge pull request #6461 from Chocobo1/rand_fix
Workaround thread_local on osx
2017-03-05 14:43:29 +02:00
sledgehammer999
bf3ef61a1d Merge pull request #6455 from Chocobo1/qt4
Fix issues when compiling with Qt4
2017-03-05 14:42:17 +02:00
Chocobo1
cae2f3059c Workaround thread_local not supported on OSX
Drop back to xcode7.3 on TravisCI
2017-03-04 20:37:48 +08:00
buinsky
b6c6b70915 Improve performance of updating 'progress' column 2017-03-04 12:19:36 +03:00
Chocobo1
3b5e7eb0ea Fix compile error: ‘escape’ is not a member of ‘Qt’ 2017-03-04 16:22:00 +08:00
Chocobo1
ea9d65f377 Fix incomplete type compile error with Qt4 2017-03-04 16:20:36 +08:00
Chocobo1
38063c388e Capitalize title strings
Remove DISCARDABLE keyword which is ignored on 32-bit windows
2017-03-04 13:17:55 +08:00
Chocobo1
7da29f7654 Embed manifest when compiling with MSVC
Update manifest
2017-03-04 13:09:32 +08:00
sledgehammer999
76e1c3b10b Install qbittorrent-tray.png files. Fixes commit ada75cbbe1. 2017-03-04 00:02:11 +02:00
sledgehammer999
5c730f984d Bump API_VERSION to 12. 2017-03-03 22:31:58 +02:00
Chocobo1
0fb3b18a8f Utilize escapeHtml 2017-03-03 21:28:32 +02:00
Chocobo1
6ca3e4f094 Add Utils::String::toHtmlEscaped 2017-03-03 21:28:30 +02:00
Chocobo1
eba45a0b26 Cleanup 2017-03-03 21:28:29 +02:00
Chocobo1
7756dd80f3 [WebUI]: add X-XSS-Protection, X-Content-Type-Options, CSP header 2017-03-03 21:28:28 +02:00
ngosang
f5ad04766f [WebUI] Avoid clickjacking attacks 2017-03-03 21:28:27 +02:00
Chocobo1
f9c39e3dac [WebUI]: exclude insecure ciphers 2017-03-03 21:28:26 +02:00
Chocobo1
84bc011df5 Code formatting
Remove extra private keyword
2017-03-03 21:28:25 +02:00
sledgehammer999
31b69ae6f6 Update copyright year. 2017-03-03 21:26:38 +02:00
sledgehammer999
82edc5c495 Sync translations from Transifex and run lupdate. 2017-03-03 21:13:31 +02:00
sledgehammer999
884ca03624 Merge pull request #6443 from ngosang/extratorrent
[Search engine] Update Extratorrent plugin
2017-03-03 02:35:16 +02:00
ngosang
f0fe8808bd [Search engine] Update Extratorrent plugin 2017-03-02 21:21:33 +01:00
sledgehammer999
b5f81a34cb Use new create_torrent constructor were available. 2017-02-22 19:25:50 +02:00
sledgehammer999
ad4b691fa5 Merge pull request #6413 from evsh/no-proxy-in-webui-server
Disable proxy in WebUI HTTP server. Closes #6349.
2017-02-21 13:15:22 +02:00
Eugene Shalygin
be8eab4e54 Disable proxy in WebUI HTTP server. Closes #6349.
Due to a bug in Qt 5.8 (QTBUG-58706) QTcpServer tries to use HTTP proxy
when it is set as default app proxy (for instance via "http_proxy"
environment variable) and this breaks the server. So we disable any proxy
in it.
2017-02-21 00:07:09 +01:00
sledgehammer999
9e56f3d318 Merge pull request #6385 from thalieht/Trackerlist
Trackerlist: Seperate seeds from peers for DHT, PeX, LSD
2017-02-20 01:53:54 +02:00
sledgehammer999
4adcd03ec7 Merge pull request #6366 from Chocobo1/rand
Replace rand()
2017-02-20 01:49:27 +02:00
Chocobo1
759bf4d73d Allow to load/use ECDSA certificate in webUI.
Limit max read size
Improve messages in dialogs
Refactor
2017-02-17 12:23:51 +08:00
Chocobo1
7d2a393532 Enable thread_local support in TravisCI 2017-02-16 12:21:27 +08:00
Chocobo1
511796f74e Replace rand() by a true uniform distribution generator 2017-02-16 12:21:26 +08:00
Chocobo1
c7d10dc091 Turn off port forwarding of WebUI by default for GUI users 2017-02-16 12:21:26 +08:00
thalieht
4f1c428d8f Seperate seeds from peers for DHT, PeX and LSD 2017-02-15 21:24:47 +02:00
sledgehammer999
54e99f2510 Merge pull request #6373 from murlakatamenka/master
Update mainwindow.h (remove duplicate declaration)
2017-02-13 01:34:13 +02:00
murlakatamenka
78438d7044 Update mainwindow.h (remove duplicate declaration) 2017-02-11 21:36:52 +03:00
Tim Delaney
a844ccb06a Cache rule regular expressions for performance
--HG--
branch : magao-dev
2017-02-11 18:43:50 +11:00
Tim Delaney
f9abd254f4 Use Perl-compatible regexes for RSS rules. Closes #6367.
--HG--
branch : magao-dev
2017-02-11 16:33:18 +11:00
sledgehammer999
d045f64ebb Merge pull request #6288 from Falcosc/fix_add_torrent_queue_overflow
fix queue overload for add torrent at session start
2017-02-08 22:46:58 +02:00
falco
ee239ddd1e fix queue overload for add torrent at session start 2017-02-08 15:13:21 +00:00
sledgehammer999
73f762250c Merge pull request #6358 from Chocobo1/coverity
Fix issues on coverity
2017-02-08 15:34:45 +02:00
sledgehammer999
c39056f1a8 Merge pull request #6344 from magao/issue6337
Fix regex RSS matching. Closes #6337.
2017-02-08 15:21:07 +02:00
Chocobo1
4ad541d066 Fix coverity issues
torrentcontentmodel: Use a variable to store filesCount
optionsdlg: add fallthrough comment to suppress warning
speedPlotview: initialize member
misc: fix wrong type used, add spaces
2017-02-08 13:49:47 +08:00
Chocobo1
cab10aa7b4 Use QString::toStdString()
Qt5 utilized the desired toUtf8() instead of toAscii().
2017-02-08 13:21:36 +08:00
sledgehammer999
f78bf27daf Merge pull request #6326 from magao/issue3782
RSS rules and feed UI bugfixes. Closes #3782, #6281.
2017-02-07 16:31:30 +02:00
sledgehammer999
92cfd1f602 Regenerate configure. 2017-02-06 23:07:43 +02:00
sledgehammer999
49332ab12c Use @naikel's suggestions for previous commit. 2017-02-06 23:07:42 +02:00
sledgehammer999
32b7f0745f Merge pull request #4631 from DoctorWho11/master
fixes qmake pathing and also fixes a type in configure.ac
2017-02-06 23:06:49 +02:00
sledgehammer999
f6a941defc Merge pull request #6294 from thalieht/hotkeys
Add hotkeys for some things. Closes #2090
2017-02-06 22:41:30 +02:00
sledgehammer999
cf9e8abea1 Merge pull request #6351 from evsh/cmake
cmake: read version numbers from the version.pri file. Closes #6350.
2017-02-06 22:35:17 +02:00
Eugene Shalygin
e96e14ca76 cmake: read version numbers from the version.pri file. Closes #6350. 2017-02-06 21:30:26 +01:00
sledgehammer999
01ddf23745 Remove unnecessary semicolon. 2017-02-06 18:52:04 +02:00
sledgehammer999
83009adbc0 Use same casting method and fix code style. 2017-02-06 18:52:03 +02:00
sledgehammer999
c8f955e302 Fix previous commit. 2017-02-06 18:51:56 +02:00
thalieht
0240c87095 TransferListWidget: Some coding style 2017-02-06 17:52:40 +02:00
thalieht
5675021895 enable RSS, Search and Execution Log widgets before switching to them via hotkeys 2017-02-06 17:52:40 +02:00
sledgehammer999
12b73747f5 Merge pull request #3058 from VladimirSinenko/master
Fixed sort order for datetime columns with empty values (closes #2988)
2017-02-06 17:49:26 +02:00
sledgehammer999
179b686e42 Merge pull request #6176 from magao/issue873
Improve UI responsiveness during RSS downloading. Closes #873, #1089, #1235, #5423
2017-02-06 16:17:08 +02:00
sledgehammer999
2a7f4217df Merge pull request #6321 from magao/rss_icon_themed
Rss icon themed
2017-02-06 10:08:33 +02:00
sledgehammer999
d880372b49 Fix unused variable warning by gcc. 2017-02-06 01:20:31 +02:00
sledgehammer999
fa8c69a5e1 Merge pull request #6315 from glassez/cat-tree-state
Fix category filter widget doesn't save on/off state
2017-02-06 00:13:59 +02:00
sledgehammer999
25c7c297e8 Merge pull request #6317 from dzmat/public_to_private
reduce methods accessibility from public to private
2017-02-06 00:11:38 +02:00
sledgehammer999
bcd6baa793 Merge pull request #6340 from Chocobo1/contentSort
Use case-insensitive comparsion for torrent content window
2017-02-05 23:12:55 +02:00
sledgehammer999
5046c36458 Immediately update torrent_status after manipulating super seeding mode. Partially fixes #6072. 2017-02-05 22:02:33 +02:00
Tim Delaney
c0339d4f6a Fix regex RSS matching. Closes #6337.
--HG--
branch : magao-dev
2017-02-05 08:53:33 +11:00
Chocobo1
976504498a Use case-insensitive comparsion for torrent content window.
Closes #6327
2017-02-03 23:40:22 +08:00
sledgehammer999
52b1bb2ae4 Merge pull request #6319 from magao/pr6181_bugfix
Fix compilation error on Qt<5.4. Closes #6170.
2017-02-03 01:22:25 +02:00
dzmat
b167b4174e reduce methods accessibility from public to private 2017-01-29 15:17:55 +07:00
Tim Delaney
0fb8810c52 Resize RSS icon to fit theme.
--HG--
branch : magao-dev
2017-01-29 13:56:01 +11:00
thalieht
2bb2d3fc89 change all existing shortcuts to use Qt::Keys 2017-01-28 19:43:16 +02:00
Tim Delaney
5d185f1fcd Fix compilation error on Qt<5.4. Closes #6170.
--HG--
branch : magao-dev
2017-01-27 14:24:51 +11:00
sledgehammer999
3b3de81cb7 Merge pull request #6181 from magao/issue6170
RSS episode filter improvements. Closes #800, #2749, #3876, #6170.
2017-01-26 01:02:05 +02:00
sledgehammer999
769fe17a21 Merge pull request #6179 from magao/issue6165
RSS use red text to indicate invalid filter. Closes #6165.
2017-01-25 23:28:57 +02:00
sledgehammer999
354702140a Merge pull request #6180 from magao/issue6171
Allow | in RSS must contain. Closes #6171.
2017-01-25 23:27:59 +02:00
sledgehammer999
5df8ad32fe Merge pull request #6183 from magao/issue6163
Save rule on enable/disable even if not selected. Closes #6163.
2017-01-25 23:25:49 +02:00
sledgehammer999
b9b8352a31 Merge pull request #6184 from magao/issue5539
RSS: allow resetting rule to no category. Closes #5539.
2017-01-25 23:20:19 +02:00
sledgehammer999
eb3f4b8490 Merge pull request #6283 from Chocobo1/sort
Use case-insensitive sort for Name column in Search tab. Closes #407.
2017-01-25 23:07:11 +02:00
sledgehammer999
6c05b5f083 Merge pull request #6286 from ngosang/fix_webui
[Web UI] Fix category in torrent upload. Closes #6260
2017-01-25 23:06:50 +02:00
sledgehammer999
14ebf2118a Merge pull request #6289 from evsh/cmake
Cmake compilation fixes
2017-01-25 23:06:21 +02:00
thalieht
c87cdaea23 add hotkeys for Trackerlist Peerlist etc. 2017-01-25 11:33:33 +02:00
thalieht
0fdd3e23ff add hotkey for execution log tab 2017-01-25 11:33:33 +02:00
thalieht
beddee8dd4 Transferlist: add hotkeys for double click and recheck selected torrents 2017-01-25 10:42:32 +02:00
thalieht
ed900d3e86 change torrentDoubleClicked() so it can be used in a hotkey 2017-01-25 10:11:19 +02:00
ngosang
e6e0ecfaea [Web UI] Fix category in torrent upload. Closes #6260 2017-01-22 14:20:48 +01:00
Vladimir Golovnev (Glassez)
d79297db1a Save/load category filter widget state 2017-01-22 14:59:03 +03:00
Tim Delaney
f96eb587ff Bugfix RSS feed list and rules editor. Closes #3782, #6281.
--HG--
branch : magao-dev
2017-01-22 15:36:27 +11:00
Tim Delaney
e4d9e9f63f Follow project coding style. Issue #2192.
--HG--
branch : magao-dev
2017-01-29 09:24:41 +11:00
Chocobo1
4669a99617 Use case-insensitive sort for Name column in Search tab. Closes #407. 2017-01-22 11:48:01 +08:00
sledgehammer999
077ad6506c Merge pull request #6175 from magao/issue6167
Move old RSS items to separate config file. Closes #6167.
2017-01-22 04:47:52 +02:00
sledgehammer999
043ae1eb17 Merge pull request #6278 from Falcosc/fix_incompleate_file_crash
fix index overflow for torrents with invalid meta data or empty progress
2017-01-22 01:14:16 +02:00
sledgehammer999
e64b1f5ca1 Merge pull request #6185 from magao/issue5797
Ctrl+F search filter. Closes #5797.
2017-01-22 01:12:41 +02:00
Eugene Shalygin
180ec7af4a cmake: RSS target has to depend on qbt_base as it uses its includes 2017-01-21 20:12:48 +01:00
Eugene Shalygin
eff13cc9eb cmake: fix boost components manipulations in FindLibtorrentRasterbar.cmake
The list of components which we pass to find_package() has to be semicolon
separated (i.e. to be the usual cmake list)
2017-01-21 20:11:48 +01:00
Eugene Shalygin
19c5e71a76 cmake: make some compile definitions global in Windows 2017-01-21 20:05:28 +01:00
sledgehammer999
7be27f7770 Merge pull request #6280 from ngosang/fix_search
[Search engine] Update extratorrent plugin. Closes #6261
2017-01-21 20:40:04 +02:00
ngosang
a9c5dab0dd [Search engine] Update extratorrent plugin. Closes #6261 2017-01-21 19:27:14 +01:00
sledgehammer999
9225d9ab2b Merge pull request #6279 from evsh/cmake
cmake: compilation fixes
2017-01-21 18:28:54 +02:00
Eugene Shalygin
13d9dea8ac cmake: make LibtorrentRasterbar::LibTorrent public dependency of qbt_base
If libtorrent include directory not in the compiler search path, we have
to pass it to all qbt targets, because session.h includes
libtorrent/version.hpp
2017-01-21 16:40:44 +01:00
Eugene Shalygin
0cb9884965 cmake: get and use only actual boost dependencies of libtorrent
With pkg-config we can get a list of Boost components from Libtorrent
dependencies and make qBittorrent depend only on these libraries in
turn. For Windows user may provide a custom list via
LibtorrentRasterbar_CUSTOM_BOOST_DEPENDENCIES variable or use generic
list which consists of date_time, system, chrono, random, thread. As a
note: in case of using fully C++11 build, the actual list contains only
boost system library.
2017-01-21 15:20:40 +01:00
sledgehammer999
87e454cc6d Merge pull request #5547 from buinsky/master
WebUI: Implement adjustable dynamic table columns
2017-01-21 16:12:12 +02:00
sledgehammer999
b625c4c662 Merge pull request #3162 from ngosang/trackers_tab
Display more information in tracker tab
2017-01-21 15:59:05 +02:00
buinsky
484e021ca2 Avoid lags in firefox on resizing progress column 2017-01-21 16:37:34 +03:00
Falco
84759d4f20 fix index overflow for torrents with invalid meta data or empty progress 2017-01-21 14:35:09 +01:00
buinsky
741e0a08ea Remove 300px limit of column width 2017-01-21 16:21:46 +03:00
buinsky
7628490def Fix scrollbar covers menu item with long text 2017-01-21 15:57:02 +03:00
buinsky
d50a7778fe Implement resizable progress bar in "Done" column 2017-01-21 15:57:02 +03:00
buinsky
09cf93521f Follow project coding style. Issue #2192. 2017-01-21 15:57:02 +03:00
buinsky
e65a628bf9 Add a vertical separator between columns 2017-01-21 15:57:02 +03:00
buinsky
bdf736b7d7 Prevent text wrapping in menus 2017-01-21 15:57:02 +03:00
buinsky
3dfcd6db6a Make too tall menus scrollable 2017-01-21 15:57:02 +03:00
buinsky
134e4c1eb9 Add some missing columns to dynamic tables 2017-01-21 15:57:02 +03:00
buinsky
a087d146df Fix columns names 2017-01-21 15:57:02 +03:00
buinsky
3ac87f22cb Implement dynamic table columns hiding 2017-01-21 15:57:02 +03:00
buinsky
56b885995c Implement dynamic table columns reordering 2017-01-21 15:57:02 +03:00
buinsky
56c07704d8 Implement dynamic table columns resizing 2017-01-21 15:57:02 +03:00
buinsky
c765d8ebe2 Add tooltips to dynamic table header 2017-01-21 15:57:02 +03:00
buinsky
dd1959abfb Make torrent peers table scrollable horizontally 2017-01-21 15:57:02 +03:00
buinsky
b1c45901f0 Simplify dynamic table CSS styles 2017-01-21 15:57:01 +03:00
sledgehammer999
5b35981c85 Merge pull request #5774 from thalieht/unit_precision
Increase number of digits after the decimal point. Closes #5053
2017-01-21 14:05:26 +02:00
sledgehammer999
75d0414da3 Merge pull request #6275 from evsh/fix-icon-names
Replace icon name "open-menu" with "preferences-system"
2017-01-21 14:02:14 +02:00
thalieht
f8213f5d56 friendlyUnit: Properly replace spaces with non-breaking spaces 2017-01-21 12:03:05 +02:00
thalieht
311b060c70 Increased number of digits after the decimal point for Gibibytes and above 2017-01-21 12:02:15 +02:00
buinsky
7aadf644e0 Make torrents table scrollable horizontally 2017-01-21 11:19:43 +03:00
buinsky
afd4f89693 Rename variables in DynamicTable class 2017-01-21 11:19:42 +03:00
sledgehammer999
f4fa000ba3 Polish previous commit. 2017-01-21 02:59:33 +02:00
sledgehammer999
68ecbf4185 Merge pull request #5420 from thalieht/alignment
Changes and additions in search, peerlist, transferlist
2017-01-21 02:58:32 +02:00
sledgehammer999
cccc019e5d Merge pull request #6276 from evsh/cmake
Fix cmake compilation
2017-01-21 02:10:16 +02:00
Eugene Shalygin
68e8f565e2 Fix cmake compilation 2017-01-21 00:32:00 +01:00
sledgehammer999
cb0f73da57 Merge pull request #5613 from glassez/cat_tree
Implement category filter widget. Closes #5444.
2017-01-20 23:21:31 +02:00
sledgehammer999
c8ddd68a7a Merge pull request #6212 from magao/issue2192
Follow project coding style. Issue #2192.
2017-01-20 23:13:06 +02:00
Eugene Shalygin
a6b6009fb1 Replace icon name "open-menu" with "preferences-system"
Apparently, we can not use symbolic icons transparently.
2017-01-20 20:02:49 +01:00
sledgehammer999
1376d8fa7b Merge pull request #6084 from Chocobo1/set_locale
Set default locale
2017-01-20 20:14:20 +02:00
Vladimir Golovnev (Glassez)
c002f30848 Implement category filter widget
Show categories in tree mode when subcategories are enabled.
2017-01-20 20:55:01 +03:00
sledgehammer999
8d58c52ad8 Merge pull request #6249 from bil-elmoussaoui/master
Fixes default indicator name
2017-01-20 19:10:45 +02:00
sledgehammer999
96f9984823 Fix preferences icon loading in WebUI. 2017-01-20 18:54:36 +02:00
sledgehammer999
824b90b643 Merge pull request #6269 from Chocobo1/icons
Fix new icons too large
2017-01-20 18:33:35 +02:00
sledgehammer999
05def34697 Merge pull request #6157 from Chocobo1/speedLimit
Speedlimitdlg: raise slider default value to 10000
2017-01-20 18:24:42 +02:00
sledgehammer999
cb7cadfc54 Merge pull request #6272 from BanzaiMan/patch-1
Allow some Mac jobs to fail
2017-01-20 17:12:14 +02:00
Hiro Asari
7f7b63b172 Allow some Mac jobs to fail
Put `allow_failures` in the correct place.
2017-01-20 09:11:18 -05:00
Chocobo1
ca77a315d9 Fix download & upload icon too large on statusbar in webui 2017-01-20 14:04:32 +08:00
Chocobo1
35921c70fe Remove trailing spaces 2017-01-20 14:04:05 +08:00
Chocobo1
0517a3eb63 Fix rss icon too large in rss settings dialog
Give a name to the rss icon (in .ui file)
Add helper function: Utils::Misc::largeIconSize()
Group functions under the same #ifdef
2017-01-20 13:45:50 +08:00
Chocobo1
d52a74092b Reset values to default, these are controled elsewhere. 2017-01-19 23:42:12 +08:00
sledgehammer999
7d7f82ae46 Fix finding 'English' item in language dropdown menu when an unrecognized locale is requested. Closes #6109. 2017-01-19 17:22:40 +02:00
sledgehammer999
fed325a54d Merge pull request #6140 from Chocobo1/relocateNoRemove
After files relocate, don't remove the old folder even if it is empty
2017-01-19 15:52:09 +02:00
sledgehammer999
f1942bc0e0 Merge pull request #6104 from okeatime/mac_nox
Build qbittorrent-nox for macOS
2017-01-19 15:49:47 +02:00
sledgehammer999
dcab1da8ab Merge pull request #6138 from Chocobo1/stats2
Use the numbers from tracker scrape response
2017-01-19 11:49:47 +02:00
Chocobo1
a2bb947dcc After files relocate, don't remove the old folder even if it is empty. 2017-01-19 14:21:04 +08:00
Chocobo1
fa45ba102c Refactor 2017-01-19 14:21:04 +08:00
Chocobo1
75ef6356d3 Set default locale 2017-01-19 13:33:34 +08:00
Chocobo1
e37a696e7d Refactor
Move default value to preference class
Rename variable
Reorder headers
Remove extra parentheses
2017-01-19 13:33:34 +08:00
Chocobo1
72a6f7ae24 Use the numbers from tracker scrape response. Closes #5048, #6117.
Add comments
Thanks to Ian Kent for helping investigate
2017-01-19 13:17:50 +08:00
Chocobo1
ecd49148d0 Fix webUI used the wrong value. Closes #6232. 2017-01-19 13:17:39 +08:00
sledgehammer999
a178268b31 Merge pull request #5959 from dzmat/DRY_fix_minor
Little DRY violation fixed
2017-01-19 01:49:21 +02:00
sledgehammer999
ba03fb30f3 Merge pull request #5987 from Chocobo1/temp_dir
Put temp files in .qBittorrent directory
2017-01-19 01:33:57 +02:00
sledgehammer999
a092cb9bda Remove settings to exchange trackers. It wasn't used by non-libtorrent clients. Also it has a privacy risk and you might be DDoSing someone. DHT makes it obsolete anyway. 2017-01-19 01:13:55 +02:00
sledgehammer999
7c75ee20e3 Merge pull request #6076 from evsh/warn-if-no-function-names
Warn if no function names are present in the stacktrace
2017-01-19 00:33:12 +02:00
sledgehammer999
18d9403a58 Merge pull request #6098 from dzmat/rename_tab_names
Clarify options tab page objects names
2017-01-19 00:14:30 +02:00
sledgehammer999
b5bf6df058 Merge pull request #6139 from Chocobo1/warnings
Fix compile warning: unused parameter ‘action’
2017-01-18 23:42:58 +02:00
sledgehammer999
b88b7d4af7 Merge pull request #6262 from evsh/resume-fixes
Resume fixes
2017-01-18 22:21:15 +02:00
sledgehammer999
c43cfbad17 Merge pull request #6182 from magao/issue6164
Fix tab order in RSS downloader. Closes #6164.
2017-01-18 20:08:06 +02:00
Eugene Shalygin
b6e64c13d8 Fetch torrent status when generating final fastresume data
This is done to get correct queue position, which has to be written into
the fastresume file. See discussion in #6154.
2017-01-18 18:59:03 +01:00
sledgehammer999
bfec8b8588 Merge pull request #6161 from okeatime/tr
Avoid unnecessary translation. Closes #6158
2017-01-18 19:50:40 +02:00
sledgehammer999
a33ff12123 Merge pull request #6203 from okeatime/webui_proxy
Webui proxy_type bug fix
2017-01-18 19:15:50 +02:00
sledgehammer999
d686f2dda6 Merge pull request #6250 from evsh/fix-icon-names
Fix icon rendering in Linux
2017-01-18 19:07:41 +02:00
Eugene Shalygin
9bab229108 Adjust icons names to better fit FDO scheme
An icon theme may use variously styled icons for various types of UI
elements. For example, Breeze theme uses monochrome icons for actions
(toolbars) and statuses, but colourful for view contents. qBittorrent
was using icon names without putting attention to categories, creating
mix of styles in UI elements (i.e. the main toolbar).

This commit fixes icon names (and move some of them to theme) to avoid
this style mixes where possible.

Unfortunately, options dialog page icons for network and speed limits
are remained monochrome because there are no Breeze or Adwaita icons to
match.
2017-01-18 18:03:33 +01:00
Eugene Shalygin
6cd233dd61 Add queue repair code
This is a bit adjusted code created by nxd4, who shared it in issue
disappearing).
2017-01-18 17:27:20 +01:00
sledgehammer999
7d55467f4b Merge pull request #6234 from Chocobo1/scroll
For each cell setting ignore wheel events. Closes #866.
2017-01-18 17:40:02 +02:00
Eugene Shalygin
3de105704e Do not resize SVG icons
An icon which is loaded from SVG file can be rendered in any size and
resolutions natively. We were generating 16x16, 24x24, and 32x32
pixmaps, and not appending but creating new icon. Therefore for SVG
icons we effectively were reducing their quality.

If icon already contains 7 (or more) sizes (16 to 256 px) we do not
resize it anymore.
2017-01-18 10:26:35 +01:00
Eugene Shalygin
9d3378bd3b Support fallback when selecting theme icons
Fallback icon theme are not supported everywhere. Hence we mimic
signature of QIcon::fromTheme().
2017-01-18 10:26:24 +01:00
sledgehammer999
3c1f747c25 Merge pull request #6235 from Chocobo1/systray_too_large
Fix icon issues
2017-01-18 03:25:58 +02:00
sledgehammer999
5a611b66a5 Merge pull request #6252 from evsh/fix-6248
Do not remove added files unconditionally. Closes #6248
2017-01-18 02:42:10 +02:00
Bilal Elmoussaoui
ada75cbbe1 fixes default indicator name
copy icons instead of renaming them, create status folder

rename from *-indicator to *-tray
2017-01-18 01:13:43 +01:00
Eugene Shalygin
4c13f155ff Do not remove added files unconditionally. Closes #6248
If removing of added torrents is enabled and dialog for adding torrents
is disabled, file guard was assuming that torrent is added successfully.
And that can be not the case if a user trying to add a broken torrent
file (or not a torrent file at all). Then this file gets deleted always.

Fix this by checking result of addTorrent_impl().
2017-01-18 00:04:26 +01:00
Chocobo1
df274e6457 Fix statusIcon too large. Closes #6228. 2017-01-13 22:53:24 +08:00
Chocobo1
8380edc00c For each cell setting ignore wheel events. Closes #866. 2017-01-13 17:47:46 +08:00
Chocobo1
08aaff379b Fix download & upload icon too large in systray on linux. Closes #6233. 2017-01-13 16:59:59 +08:00
sledgehammer999
33ada71e4b Fix Travis macOS builds. 2017-01-12 02:40:44 +02:00
sledgehammer999
e230cde6c4 Merge pull request #6108 from evsh/fix-6103
Workaround problem with moc from Qt4 and #if. Closes #6103, #5451
2017-01-12 02:08:59 +02:00
Eugene Shalygin
de403dcd9d Workaround problem with moc from Qt4 and #if
moc from Qt4 ignores Q_ENUMS when it is behind #if QT_VERSION check.
Therefore moc entries for enum in TorrentFileGuard were not generated
and the setting was not saving/loading. This closes #6103, #5451
2017-01-12 00:42:37 +01:00
sledgehammer999
48c2901d09 Allow build failures for qt4 and osx for Travis. 2017-01-12 01:12:06 +02:00
sledgehammer999
ca937b72ef Use custom qt5 bottle for homebrew (macOS) on Travis. 2017-01-12 00:59:28 +02:00
sledgehammer999
28547f4ec5 Add template for issues. 2017-01-11 20:11:59 +02:00
sledgehammer999
c384cc8c8c Move new icons to their own theme folder. 2017-01-11 18:02:26 +02:00
sledgehammer999
69da12e6b2 Merge pull request #4253 from bertyhell/stylized-icons-main-bar
Switching to stylized icons
2017-01-11 18:01:35 +02:00
sledgehammer999
bf102be567 Merge pull request #6221 from evsh/fix-qt5-log-flood
Set upper version limit for QTBUG-52633
2017-01-11 01:41:46 +02:00
Eugene Shalygin
7b594a635e Set upper version limit for QTBUG-52633
The bug seems to be fixed in version 5.7.1.
2017-01-11 00:14:16 +01:00
Tim Delaney
70ce12372d Follow project coding style. Issue #2192.
--HG--
branch : magao-dev
2017-01-08 11:46:01 +11:00
Bert Verhelst
7fb3962192 Merge branch 'master' of https://github.com/qbittorrent/qBittorrent 2017-01-06 20:14:15 +01:00
Oke Atime
84fe40c492 Webui proxy_type bug fix 2017-01-05 18:43:54 +09:00
Tim Delaney
8949a8ad75 RSS: allow resetting rule to no category. Closes #5539.
--HG--
branch : magao-dev
2016-12-31 16:58:01 +11:00
Tim Delaney
2244b7cb66 RSS episode filter refactoring and logging (prep for later commits).
--HG--
branch : magao-dev
2016-12-31 18:01:22 +11:00
Oke Atime
e89c32685b Avoid unnecessary translation. Closes #6158 2016-12-31 01:29:47 +09:00
Chocobo1
14a39ba3c3 Speedlimitdlg: raise slider default value to 10000. Closes #6150.
Old value 1000 (KB/s) can be a bit small for modern internet.
2016-12-30 13:41:27 +08:00
Chocobo1
e178e70053 Code rewrite, no behavior change 2016-12-30 13:35:47 +08:00
sledgehammer999
88b2b26007 Don't use hardcoded numbers to refer to columns. 2016-12-30 01:37:26 +02:00
sledgehammer999
2d37a39e43 Allow to change priority for unselected files through the combobox like it is done via the context menu. 2016-12-30 01:37:19 +02:00
sledgehammer999
7ba66e692f Always show progress and remaining bytes for unselected files. 2016-12-30 01:37:13 +02:00
sledgehammer999
3e375128c0 Use a disabled progressbar's palette for unselected files.
Thanks to evsh(Eugene Shalygin) for example code.
2016-12-30 01:37:02 +02:00
sledgehammer999
cd88b5595c Update gpg key with new uid. 2016-12-27 16:56:35 +02:00
Chocobo1
bc41e2034c Fix warning: unused parameter ‘action’ [-Wunused-parameter] 2016-12-27 20:19:20 +08:00
sledgehammer999
132cc7f788 Merge pull request #6099 from evsh/cmake
cmake: make prefix variables cached
2016-12-26 13:39:15 +02:00
Oke Atime
5f767b96f6 Build qbittorrent-nox for macOS 2016-12-22 23:23:21 +09:00
Eugene Shalygin
7ed5c65b10 cmake: make prefix variables cached
This allows user to override their default value via -D cmake switch
2016-12-19 17:08:23 +01:00
dzmat
6ce443424b Clarify options tab page objects names 2016-12-19 19:00:03 +07:00
sledgehammer999
7adb1d7f82 WINDOWS: Make the updater to look for the x64 installer if running x64 version. 2016-12-17 19:46:04 +02:00
Eugene Shalygin
05dbea390b Print warning to the user if stacktrace contains no function names
Count matched function names, and if there are no, point out to the user
that the stacktrace is useless. If not all stactrace elements contain
function names, suggest user that installing debug packages may improve
the stacktrace usefulness.
2016-12-17 17:46:05 +01:00
Eugene Shalygin
514de7edc4 Follow project coding style. Issue #2192. 2016-12-17 17:29:43 +01:00
sledgehammer999
d330ae2421 Merge pull request #6056 from okeatime/resume_pause
Make resume/pause menu items clickable. Closes #6040
2016-12-16 14:59:08 +02:00
Oke Atime
5ae35ea6dc Make resume/pause menu items clickable. Closes #6040 2016-12-16 21:50:09 +09:00
sledgehammer999
0f0bb7277a Merge pull request #6057 from okeatime/client_sort
Case insensitive sort for client clumn. Closes #6054
2016-12-15 13:29:25 +02:00
Oke Atime
84da355f4c Case insensitive sort for client clumn. Closes #6054 2016-12-15 15:25:30 +09:00
sledgehammer999
4f59caf3ca Fix share ratio limiting. Broken by commit 259b5e51c4. Closes #6039 #6048. 2016-12-15 00:04:50 +02:00
sledgehammer999
b2827702e5 Correctly migrate settings/rss/usage stats in macOS. Closes #6041. 2016-12-14 17:51:49 +02:00
sledgehammer999
435886bbf0 Fix GUI for proxy settings. Closes #6045. 2016-12-14 17:35:23 +02:00
sledgehammer999
5c4db0fa17 Fix slider for per torrent speed limits when no global speed limit has been set. Closes #6046. 2016-12-14 17:18:34 +02:00
sledgehammer999
26e8072c84 Merge pull request #5332 from evsh/fix-qt5-log-flood
Add a workaround for QTBUG-52633, qBt issue #5073
2016-12-13 19:37:17 +02:00
Eugene Shalygin
9a123c42c3 Add a workaround for QTBUG-52633, qBt issue #5073
The QTBUG-52633 results in food of network interface changed events, libtorrent IP
rebind calls and flood in the qBt log. The work around is the check not only for
interface name, but for IP address on that interface before triggering the libtorrent rebind.
2016-12-13 17:18:58 +01:00
sledgehammer999
283511116e New translations: Icelandic, Latvian, Malay, Occitan, Uzbek
Also re-run lupdate.
2016-12-13 02:09:28 +02:00
sledgehammer999
77da1afae5 Sync translations from Transifex and run lupdate. 2016-12-13 01:02:06 +02:00
sledgehammer999
0caf03130c Bump API_VERSION and API_VERSION_MIN to 11. 2016-12-12 22:11:06 +02:00
sledgehammer999
d88ec48468 Polish previous commit. 2016-12-11 23:24:55 +02:00
sledgehammer999
5a006d5980 Merge pull request #5810 from ghost/macOSpref
Change QSettings to IniFormat on macOS. Closes #5770 #5808
2016-12-11 23:23:22 +02:00
sledgehammer999
4e8ca90b23 Merge pull request #5958 from dzmat/auto_ptr_eviction
minimizing the number of warnings about deprecated auto_ptr
2016-12-10 21:23:42 +02:00
sledgehammer999
07edb7b74e Merge pull request #6010 from Chocobo1/warnings
Fix memory leak
2016-12-10 21:22:41 +02:00
dzmat
abeff99ba0 minimizing the number of warnings about deprecated auto_ptr 2016-12-08 19:24:52 +07:00
Chocobo1
5cf86d3677 Change Utils::Fs::freeDiskSpaceOnPath() signature
refactor the function internals
2016-12-08 15:36:34 +08:00
thalieht
9f06d0d47b SearchTab: can now save sorting column changes 2016-12-07 18:39:03 +02:00
thalieht
f523685414 PeerListDelegate: fix coding style in whole file 2016-12-07 18:39:03 +02:00
thalieht
a90100a0b7 PeerList: allow to hide zero values for the "uploaded" and "downloaded" columns 2016-12-07 18:25:18 +02:00
thalieht
1652425cee TransferListWidget: keep columns width even if they are hidden on qBittorrent startup (unless something goes wrong) 2016-12-07 18:19:54 +02:00
thalieht
c90794878f SearchTab: Allow to toggle columns in searchtab 2016-12-07 18:19:54 +02:00
thalieht
b2144f7928 SearchTab: use saveSettings() and loadSettings() to handle header state 2016-12-07 18:19:54 +02:00
thalieht
5255719661 SearchTab: align text to the right in columns that handle numbers 2016-12-07 17:47:51 +02:00
thalieht
daf33ef8aa PeerList: align text to the right in columns that handle numbers 2016-12-07 17:47:51 +02:00
sledgehammer999
ba1e5b8d58 Merge pull request #6013 from Chocobo1/mac_warnings
Fix warnings on macOS
2016-12-07 16:48:35 +02:00
sledgehammer999
49ed0765e1 Merge pull request #5928 from Chocobo1/rss-view
Change RSS view layout to horizontal
2016-12-07 01:44:56 +02:00
sledgehammer999
0d1b70e248 Decouple dependency between Session and BandwidthScheduler during Session init. Closes #6007. 2016-12-07 01:33:48 +02:00
Chocobo1
ce3c53b3c4 Replace deprecated classes 2016-12-07 01:31:44 +08:00
Chocobo1
ab187f06da Fix unused variable warnings 2016-12-07 01:31:39 +08:00
Chocobo1
0b313e0bc3 Remove unused variable 2016-12-05 20:20:01 +08:00
Chocobo1
7f2f78a816 Simplify #if expression 2016-12-05 20:05:08 +08:00
Chocobo1
e1c9e3b9ed Fix memory leak
call unicode version of the function directly
2016-12-05 20:04:21 +08:00
Chocobo1
5608827429 Simplify function call 2016-12-05 20:04:13 +08:00
sledgehammer999
b971eb52ee Fix travis osx build. 2016-12-02 23:11:05 +02:00
sledgehammer999
f7194eecb0 Merge pull request #5997 from Chocobo1/msvc_warnings
Fix msvc warnings
2016-12-02 19:15:59 +02:00
Chocobo1
5d2d22a218 Fix warning C4090.
different '__unaligned' qualifiers.
2016-12-02 15:32:27 +08:00
Chocobo1
11c2ee81c1 Fix warning C4267.
conversion from 'size_t' to 'int', possible loss of data.
2016-12-02 15:32:27 +08:00
sledgehammer999
d1d6f7ddbc Merge pull request #5954 from zywo/cmake_build_fix
Fix CMake compilation error.
2016-12-02 01:49:03 +02:00
sledgehammer999
3c1774360f Merge pull request #5981 from Chocobo1/scroll_h
Horizontal scroll
2016-12-02 01:47:08 +02:00
sledgehammer999
7bd7f2b045 Merge pull request #5998 from dzmat/mem_leak_fixing2
memleak fix
2016-12-02 01:43:13 +02:00
sledgehammer999
d557e9600a Merge pull request #5992 from Chocobo1/appveyor
Update CI scripts
2016-12-02 01:41:22 +02:00
dzmat
de26606ad5 memleak fix 2016-12-01 20:18:38 +07:00
Chocobo1
cffa729ac5 Put temp files in .qBittorrent directory. Closes #4462. 2016-12-01 01:39:27 +08:00
Chocobo1
599dbe1870 Rename 2016-11-30 13:22:51 +08:00
Chocobo1
ba2dc69ff9 Fix URL 2016-11-30 13:22:51 +08:00
Chocobo1
d84461c9b2 Remove unused header 2016-11-29 17:31:14 +08:00
Chocobo1
f4652b3f7b Shift + scroll = horizontal scroll, Closes #5980
Only for TransferListWidget, PeerListWidget
2016-11-27 16:06:46 +08:00
dzmat
4b18bb29a6 DRY violation fixed 2016-11-18 23:05:47 +07:00
zywo
6e7d3b8135 Fix CMake compilation error. 2016-11-17 16:20:36 +01:00
Chocobo1
a415f14fac Rename splitter names 2016-11-17 11:12:33 +08:00
sledgehammer999
d73688bfd8 Sync translations from Transifex and run lupdate. 2016-11-14 02:47:35 +02:00
sledgehammer999
2d053da21f Merge pull request #5847 from yezezey/downloadFromURL
Fix downloadFromURL bug. Closes #5844
2016-11-14 02:14:26 +02:00
sledgehammer999
f2d8b8e319 Travis: Use custom libtorrent formula and bottle for OSX.
Caches libtorrent 1.0.10 built with c++11 enabled.
2016-11-13 22:50:28 +02:00
sledgehammer999
fd5d1583de Option to disable tracker's favicon download. 2016-11-13 22:47:37 +02:00
sledgehammer999
7923b54456 Remove (mostly) useless log warnings about tracker's favicon. 2016-11-13 22:47:31 +02:00
sledgehammer999
34f893e8ad Merge pull request #5925 from yezezey/macOSqt5
add /usr/local/include due to Qt 5.7.0 bug on macOS
2016-11-13 16:06:35 +02:00
Yez Ezey
07c0e72bd3 add /usr/local/include due to Qt 5.7.0 bug on macOS 2016-11-12 02:51:21 +09:00
Tim Delaney
94c9772a81 Ctrl+F search filter. Closes #5797.
--HG--
branch : magao-dev
2016-11-12 01:32:58 +11:00
Tim Delaney
2e66ddb0a0 Follow project coding style. Issue #2192.
--HG--
branch : magao-dev
2017-01-08 11:46:01 +11:00
Chocobo1
6b835f53ce Use new key for storing RSS splitter_v value.
So that old value won't override the RSS layout.
2016-11-11 00:35:40 +08:00
Chocobo1
7d34a89efd Change RSS view layout to horizontal. Closes #5920.
Thanks Bhaalspawn for the idea.
2016-11-10 20:59:55 +08:00
sledgehammer999
3afe1835c0 Merge pull request #5924 from Chocobo1/travis
Update ax_boost_system.m4
2016-11-10 14:58:04 +02:00
Chocobo1
f85b97916c Update ax_boost_system.m4 to d48ec2210047bbf17702700811c3f16a5369e06c 2016-11-10 19:49:07 +08:00
Chocobo1
8abb5fdf47 Remove redundant command 2016-11-10 14:10:44 +08:00
sledgehammer999
c395bf7c7c Merge pull request #5916 from EdwardLinux/patch-1
Update portuguese.nsi
2016-11-09 18:13:41 +02:00
EdwardLinux
1e5b2e57e7 Update portuguese.nsi 2016-11-08 15:34:57 +00:00
sledgehammer999
bfde2ce875 Small travis update for OSX. 2016-11-07 17:11:33 +02:00
Tim Delaney
b84d9201fd Allow | in RSS must contain. Closes #6171.
--HG--
branch : magao-dev
2016-11-07 17:46:27 +11:00
sledgehammer999
aa1e884c81 Merge pull request #5842 from yezezey/macOSpython
Set /usr/local/bin before default PATH on macOS. Closes #5639 #5571
2016-11-07 08:41:13 +02:00
Yez Ezey
55916df97d Set /usr/local/bin before default PATH on macOS. closes #5639 #5571
Since Apple made difficult for users to set PATH and /usr/bin/python
is almost unusable, I simply add /usr/local/bin before default PATH
to pick up Homebrew Python.
2016-11-07 13:29:55 +09:00
sledgehammer999
90bbe3379d Merge pull request #5882 from onto/pvs-studio
Fixes and improvements after check by PVS-Studio
2016-11-07 00:18:46 +02:00
sledgehammer999
d5385523ac Merge pull request #5849 from yezezey/macOSconfigure
Add --disable-qt-dbus to configure if $host_os is macOS
2016-11-07 00:16:11 +02:00
Tim Delaney
390d7a8124 Improve UI responsiveness during RSS downloading. Closes #873, #1089, #1235, #5423.
--HG--
branch : magao-dev
2016-11-07 08:56:06 +11:00
sledgehammer999
9b760a8fa0 Merge pull request #5858 from yezezey/case_insensitive
Sort torrent names case insensitively
2016-11-06 23:55:57 +02:00
sledgehammer999
6302eb1317 Merge pull request #5896 from Chocobo1/qjson
QJson: update to latest git version
2016-11-06 23:52:46 +02:00
sledgehammer999
1259069358 Merge pull request #5904 from yezezey/extra_magnet
Fix extratorrent searchengine. Closes #5773
2016-11-06 23:50:14 +02:00
sledgehammer999
c7bdd10734 Merge pull request #5906 from thalieht/patch-1
Log: set "Embedded Tracker [OFF]" msg type as info
2016-11-06 23:49:10 +02:00
Tim Delaney
32bdb73f70 RSS allow infinite range to extend beyond current season. Closes #800, #3876, #6170.
--HG--
branch : magao-dev
2016-11-07 07:18:06 +11:00
thalieht
c7a04e27f4 Log: set embedded Tracker [OFF] msg type as info 2016-11-06 11:55:31 +02:00
Tim Delaney
935b30b17a RSS use red text to indicate invalid filter. Closes #6165.
--HG--
branch : magao-dev
2016-11-06 16:53:06 +11:00
Tim Delaney
e37488807b Fix tab order in RSS downloader. Closes #6164.
--HG--
branch : magao-dev
2016-11-06 15:45:44 +11:00
Tim Delaney
96c1187f47 RSS parse torrent episodes like 1x01 as well as S01E01. Closes #2749.
--HG--
branch : magao-dev
2016-11-06 15:26:48 +11:00
Tim Delaney
64f9cbbf54 Allow episode zero (special) and leading zeroes in RSS episode filter.
--HG--
branch : magao-dev
2016-11-06 22:51:33 +11:00
Tim Delaney
601649f49a Save rule on enable/disable even if not selected. Closes #6163.
--HG--
branch : magao-dev
2016-11-06 13:52:12 +11:00
Tim Delaney
cecff159a0 Move old RSS items to separate config file. Closes #6167.
--HG--
branch : magao-dev
2016-11-06 12:00:09 +11:00
Yez Ezey
f6dbf2454d Fix extratorrent searchengine. Closes #5773
They changed to magnet link.
2016-11-05 22:31:17 +09:00
Anton Lashkov
1233c5b67b Fix name of variable same as class member 2016-11-04 21:44:00 +04:00
Anton Lashkov
36901295b2 Simplify if statement 2016-11-04 21:44:00 +04:00
Anton Lashkov
a372d22fb2 Add missing else 2016-11-04 21:44:00 +04:00
Anton Lashkov
1785c54b83 Fix mistake in getting value from model 2016-11-04 21:44:00 +04:00
Chocobo1
bb4e67684c QJson: update to 5e3b9b84b225f4612e09ef05aa6d8c23379e4e71 2016-11-04 01:33:25 +08:00
sledgehammer999
05387edbfa Merge pull request #5881 from Chocobo1/trackerfilter_crash
Fix crash in TrackerFiltersList::removeItem()
2016-11-03 15:20:04 +02:00
sledgehammer999
b358809328 Merge pull request #5760 from borouhin/patch-1
Don't request client SSL certificate (closes issue #3883)
2016-11-02 23:34:00 +02:00
sledgehammer999
259b5e51c4 Don't ever stop seeding forced torrents. Closes #5784. 2016-11-02 18:25:09 +02:00
sledgehammer999
4128f01aa8 Don't revert save path value in the Dialog when metadata are received. Closes #5482. 2016-11-02 18:10:10 +02:00
sledgehammer999
146d4e049a Some more compiler warnings fixed. 2016-11-02 17:49:50 +02:00
sledgehammer999
9f8dfbc51c Fix warning due to stupid typo. 2016-11-01 22:24:55 +02:00
sledgehammer999
e10c2abf3b Delete old rss favicon before assigning new one. 2016-11-01 18:25:47 +02:00
sledgehammer999
841676fd36 WINDOWS: Fix python auto install, deletion of installer and use 3.5.x series for Vista+. Closes #5871. 2016-11-01 18:25:42 +02:00
sledgehammer999
05f4270d01 WEBUI: Changed meaning of the value of the 'dl_limit', 'up_limit', 'alt_dl_limit' and 'alt_up_limit' tokens.
The value is expressed in bytes and not in KiB.
2016-11-01 18:25:36 +02:00
sledgehammer999
e440fc3d17 Fix setting a speed limit. 2016-11-01 17:51:57 +02:00
sledgehammer999
3081a8bb3f Add libtorrent's DHT bootstrap node to our bootstrap list. 2016-11-01 03:42:38 +02:00
sledgehammer999
660b8cdb7e Use the new API to add DHT bootstrap nodes for libtorrent 1.1.x and simplify the code a bit. 2016-11-01 03:42:33 +02:00
sledgehammer999
afe930cbee Use new libtorrent 1.1.2+ utility function to generate client ID instead. 2016-11-01 03:42:28 +02:00
sledgehammer999
e054f63746 Make sure that paths are loaded/saved using slashes as dir separators. 2016-11-01 03:42:22 +02:00
sledgehammer999
59b570cf62 Display message about libtorrent plugins for the correct case. 2016-11-01 03:42:17 +02:00
sledgehammer999
f391b24b1d Migrate last setting related to interfaces to the new system. 2016-11-01 03:42:12 +02:00
sledgehammer999
7bf06cd6e6 Fix save/load of interface address setting. 2016-11-01 03:42:07 +02:00
sledgehammer999
f885c6375a Use better variable names for tracker announce IP setting. 2016-11-01 03:42:01 +02:00
sledgehammer999
db4b30ad48 Fix values for unsetting speed limits. 2016-11-01 03:41:56 +02:00
sledgehammer999
6053390bf5 Unify and simplify setting to use proxy for torrents only. 2016-11-01 03:41:51 +02:00
sledgehammer999
5cbc7b16c0 Guard the flag used for deferred session configure. 2016-11-01 03:41:45 +02:00
sledgehammer999
1757973f88 Misc fixes. 2016-11-01 03:41:40 +02:00
sledgehammer999
10cd45dc81 Fix setting limits to unlimited. 2016-11-01 03:41:35 +02:00
sledgehammer999
a5ae86512a Rename IP filtering functions and settings names. 2016-11-01 03:06:58 +02:00
sledgehammer999
b97cb7422f Export torrents added only after the setting was enabled. 2016-11-01 03:06:58 +02:00
sledgehammer999
124eddc68c Merge pull request #5342 from glassez/session
Optimize BitTorrent::Session settings applying
2016-11-01 03:02:29 +02:00
sledgehammer999
23a88b5d69 Merge pull request #5879 from darksom/master
Update portugueseBR.nsi
2016-10-31 00:55:20 +02:00
Chocobo1
aba625d544 Fix potential crash. Closes #5873. 2016-10-30 16:10:44 +08:00
Chocobo1
f8dc8ad4ad Refactor 2016-10-30 15:53:59 +08:00
DaRKSoM
1a9781d66f Update portugueseBR.nsi 2016-10-30 00:33:22 -02:00
sledgehammer999
a42b4ef0a0 Merge pull request #5868 from BouRock/patch-1
Turkish translation of NSIS installer strings.
2016-10-29 18:02:34 +03:00
Burak Yavuz
b382ae2233 Turkish translation 2016-10-27 20:55:47 +03:00
sledgehammer999
3e12d958e9 Merge pull request #5855 from Chocobo1/tray_icon_crash
Fix tray icon crash
2016-10-24 19:25:11 +03:00
Yez Ezey
81ec2e60a9 Sort torrent names case insensitively 2016-10-24 19:50:30 +09:00
Chocobo1
c49bb2daad The intended action is set the bit to 1, not flipping it. 2016-10-23 20:13:04 +08:00
Chocobo1
59942531df Fix crash when restoring from tray. Closes #5854. 2016-10-23 19:58:46 +08:00
Yez Ezey
4e33af41dd Add --disable-qt-dbus to configure if $host_os is macOS 2016-10-21 14:49:09 +09:00
Yez Ezey
42929e7783 Fix downloadFromURL bug. Closes #5844 2016-10-20 19:53:23 +09:00
sledgehammer999
07f141af2e Merge pull request #5822 from ngosang/plugins
[Search engine] Update Plugins
2016-10-18 01:34:57 +03:00
ngosang
d249e9e7c6 [Search engine] Remove TorrentReactor plugin 2016-10-11 22:51:54 +02:00
ngosang
7c13f71481 [Search engine] Update Demonoid plugin 2016-10-11 22:48:21 +02:00
Yez Ezey
26052802ca Change QSettings to IniFormat on macOS. Closes #5770 #5808
On macOS 10.12 Sierra, Apple changed the behaviour of CFPreferencesSetValue()
truncating data after a null character. https://bugreports.qt.io/browse/QTBUG-56344
Due to this, we have to move from native plist to IniFormat.
2016-10-08 14:05:30 +09:00
sledgehammer999
829425831f Properly fix the handling of default save path store/load. Bug introduced in dd34663224 2016-10-06 16:54:15 +03:00
sledgehammer999
7b04dd4106 Merge pull request #5746 from erikssm/master
fix default save path bug
2016-10-06 16:39:44 +03:00
erikssm
d2e911c3ea fix default save path bug 2016-10-05 18:54:36 +03:00
sledgehammer999
6960245a06 Merge pull request #5777 from yezezey/macosx_debug
Fix Mac OS X Build (Closes #5763)
2016-09-30 18:29:34 +03:00
Yez Ezey
c30e61904d Fix Mac OS X Build (Closes #5763)
Deleted offending code
    setUnifiedTitleAndToolBarOnMac(false);
which was a workaround to avoid bug https://bugreports.qt.io/browse/QTBUG-7305
The bug was fixed at Qt 4.6.2 https://github.com/Blizzard/qt4/blob/master/dist/changes-4.6.2
2016-09-27 05:09:38 +09:00
sledgehammer999
bec4617128 Merge pull request #5749 from yezezey/master
fixed extratorrent search not working v.3.3.7 #5736
2016-09-24 00:02:53 +03:00
sledgehammer999
b3a7954363 Use a subdomain to redirect to the actual URL for search plugins.
Will allow to move around the plugins in the git repo with the 3.4.0 release.
2016-09-23 23:16:24 +03:00
Yez Ezey
3a744a954b Fixed extratorrent search not working Closes #5736 #5753
The original code accumulates all the <td> texts between the description
link and the number of seeders into self.current_item["size"]:
    <td>248.72</td><td>&nbsp;MB<td> => "248.72 MB".
ExtraTorrents changed the table design, added the Added column and joined
the number and its unit:
    <td>8d</td><td>248.72&nbsp;MB</td> => "8d 248.72 MB"
This commit stores only the last <td> text in self.current_item["size"].
2016-09-23 03:52:12 +09:00
borouhin
501a2d7c45 Don't request client SSL certificate (closes issue #3883) 2016-09-21 02:42:51 +03:00
sledgehammer999
3ea81be2cc Merge pull request #5731 from thalieht/webui_port
Fix WEBUI port overflow
2016-09-13 23:54:01 +03:00
sledgehammer999
a7253c5ead Update UAC nsis plugin to 0.2.4c. Building the installer with nsis 3.0 (final) is possible now. Closes #5556. 2016-09-12 17:15:39 +03:00
sledgehammer999
05d226a103 Fix travis again.
I wish the homebrew guys didn't break it so often and the travis guys updated their images more frequently.
2016-09-12 02:29:40 +03:00
thalieht
6ec1c61b06 fix webui port overflow 2016-09-11 23:41:14 +03:00
sledgehammer999
6ea9325868 Sync translations from Transifex and run lupdate. 2016-09-11 22:07:25 +03:00
sledgehammer999
943cc86eb9 Merge pull request #5686 from ngosang/minor_fix
Fix warning in geoipdatabase.cpp
2016-09-04 01:51:48 -05:00
ngosang
83d6a28030 Fix warning in geoipdatabase.cpp 2016-08-29 22:11:05 +02:00
sledgehammer999
d411d8b3a1 Merge pull request #5549 from briankendall/smtp_ssl_bug_fixes
Fixes bug where sending email could silently fail
2016-08-25 20:45:11 -05:00
sledgehammer999
89d91500f1 Merge pull request #5648 from SagePtr/patch-1
Update geoipdatabase.cpp to allow larger GeoLite2-Country database (issue #5609)
2016-08-25 20:42:06 -05:00
SagePtr
c63da264d7 Update geoipdatabase.cpp
Updated MaxMind database limit from 10MB to 64MB. I hope it will be enough
for few years. Fix for issue #5609
2016-08-26 02:23:17 +02:00
Brian Kendall
da412571e4 Better error handling with smtp communication.
Adds log messages for a number of situations where sending an email will silently fail, in particular when attempting to create an unencrypted connection to an SMTP server that requires SSL
2016-08-25 17:57:26 -04:00
sledgehammer999
5f01065614 Merge pull request #5670 from ngosang/torrentz2
[Search engine] Update Torrentz2 search engine
2016-08-24 01:38:49 -05:00
ngosang
77b27abc94 [Search engine] Update Torrentz2 search engine 2016-08-24 00:46:09 +02:00
sledgehammer999
025ee32281 Merge pull request #5576 from Chocobo1/msiexec
Call system msiexec.exe directly
2016-08-23 11:29:53 -05:00
sledgehammer999
ddb8badcc9 Fix deletion via the context menu. Broken by #5616. 2016-08-23 18:56:50 +03:00
sledgehammer999
c30882e1d1 Merge pull request #5631 from ngosang/remove_search_engines
[Search engine] Update search engines
2016-08-23 10:21:27 -05:00
ngosang
b0c9c8a2aa [Search engine] Update Torrentz search engine 2016-08-22 23:25:54 +02:00
ngosang
4e2de98903 [Search engine] Remove BTDigg search engine 2016-08-13 21:38:14 +02:00
ngosang
9234f2f15d [Search engine] Remove KickassTorrents search engine 2016-08-10 20:41:03 +02:00
sledgehammer999
2ba4319850 Merge pull request #5617 from Chocobo1/hotkeys
Use "Standard Shortcuts" defined by Qt whenever possible.
2016-08-10 10:59:16 -05:00
Chocobo1
85add9a5c8 Use "Standard Shortcuts" defined by Qt whenever possible. 2016-08-10 23:09:15 +08:00
sledgehammer999
e94e8d3e7f Merge pull request #5616 from pieniacy/master
Add torrent and files deletion with Shift+Delete hotkey
2016-08-10 04:57:57 -05:00
pieniacy
5f4114ae76 Add torrent and files deletion with Shift+Delete hotkey 2016-08-06 02:52:49 +02:00
sledgehammer999
affebf3431 Merge pull request #5575 from Chocobo1/explorer
Avoid spawning a new explorer.exe process when selecting "Open containing folder"
2016-08-05 08:10:28 -05:00
Bert Verhelst
b00a9d4398 Update icon size of pngs to 256px + make pause icon wider 2016-08-03 22:49:05 -07:00
Chocobo1
9cb01dedba Avoid spawning a new explorer.exe process when selecting "Open containing
folder". Closes #5564.
2016-08-04 00:50:11 +08:00
sledgehammer999
382b5cae8f Merge pull request #5567 from itsdani/master
Fix 6-hour speedplot point push rate #5545
2016-08-02 04:17:50 -05:00
Daniel Segesdi
76580e4766 Fix 6-hour speedplot point push rate. Close #5545 2016-08-02 10:59:01 +02:00
Chocobo1
a64538b964 Call system msiexec.exe directly 2016-07-23 13:39:22 +08:00
Chocobo1
f448587271 Add function windowsSystemPath() 2016-07-23 13:39:13 +08:00
Chocobo1
bb956b8453 Refactor 2016-07-23 11:25:33 +08:00
Chocobo1
8742d7aa45 Uncrustify misc.cpp 2016-07-23 11:23:16 +08:00
sledgehammer999
d3ece7417d Upgrade pkg-config travis-ci for OS X.
Fixes 'zlib not found` errors.
Details: https://github.com/Homebrew/brew/issues/563
2016-07-21 14:43:47 +03:00
sledgehammer999
f264214e69 Update qt-translations and related installer files. 2016-07-20 01:32:39 +03:00
sledgehammer999
a7e2162cdc Sync translations from Transifex and run lupdate. 2016-07-20 00:48:45 +03:00
Brian Kendall
630871214f Hiding SSL / SMTP option when building without SSL support
The SMTP server always uses unencrypted connections in this case so showing the check box is misleading
2016-07-18 18:37:48 -04:00
sledgehammer999
4e8c509157 Merge pull request #5409 from Chocobo1/RTL_option
Fix icons are missing when using RTL languages in Options dialog
2016-07-17 15:47:13 -05:00
sledgehammer999
991502432c Merge pull request #5474 from Chocobo1/travis
[TravisCI] lock-on to libtorrent-rasterbar 1.0.9 version
2016-07-17 13:57:00 -05:00
sledgehammer999
53e3f8a239 Merge pull request #5408 from Chocobo1/run_ext
Fix external program command too long error in Windows
2016-07-17 10:18:18 -05:00
Chocobo1
1e1471c7c6 Workaround space issues in file path
References:
https://github.com/qbittorrent/qBittorrent/issues/5439#issuecomment-228616817
https://github.com/qbittorrent/qBittorrent/issues/5439#issuecomment-232214712
2016-07-16 11:27:51 +08:00
Chocobo1
3846a5b875 Invoke system's cmd.exe directly. 2016-07-16 11:19:33 +08:00
Chocobo1
705d7730dc Fix upper-bound limit of command line for "Run External Program" in Windows. Closes #5399. 2016-07-16 10:25:22 +08:00
sledgehammer999
5e114c0f2e Merge pull request #5443 from glassez/save_folder
Do not create save folder in advance. Closes #5422
2016-07-05 06:48:52 -05:00
Chocobo1
959676164b [TravisCI] lock-on to libtorrent-rasterbar 1.0.9 version 2016-07-01 21:23:30 +08:00
Vladimir Golovnev (Glassez)
c4e9291db4 Do not create save folder in advance
Closes #5422.
2016-06-26 16:48:11 +03:00
Chocobo1
6b48cab5e3 Fix icons are missing when using RTL languages in Options dialog. Closes #5398. 2016-06-21 16:06:57 +08:00
sledgehammer999
dbd079dfb8 Merge pull request #5389 from glassez/type_assert
Show type name in btjson.cpp@processMap assert
2016-06-20 08:58:21 -05:00
Vladimir Golovnev (Glassez)
bb17d4a8dd Show type name in btjson.cpp@processMap assert
This may help to solve #5381
2016-06-20 16:08:10 +03:00
Vladimir Golovnev (Glassez)
b5fe749f0b Use new libtorrent-1.1 settings API 2016-06-20 08:30:02 +03:00
Vladimir Golovnev (Glassez)
b2cb473b63 Don't use Preferences in BitTorrent::Session 2016-06-20 08:30:02 +03:00
sledgehammer999
ce22d031f6 Merge pull request #5058 from ngosang/remove_filters
[search engine] Remove filters from Torrentreactor, BTDigg and Demonoid
2016-06-19 18:39:17 -05:00
sledgehammer999
e7b4292d3c Sync translations from Transifex and run lupdate. 2016-06-20 02:35:45 +03:00
sledgehammer999
e3e7636de8 Fix parsing of eMule .DAT filters. Closes #5281. 2016-06-20 02:24:37 +03:00
sledgehammer999
57a4b9f8b6 Fix API_VERSION and API_VERSION_MIN numbers. 2016-06-20 02:15:11 +03:00
sledgehammer999
d060b0d342 Don't use QCollator for sorting on Windows. Closes #5238 and #5240. 2016-06-08 22:53:59 +03:00
sledgehammer999
39a81f30ff Merge pull request #5296 from Chocobo1/run_ext
Replace QProgress::startDetached with std::detatch.
2016-06-08 13:15:32 -05:00
sledgehammer999
6d4f46c8ae Merge pull request #5179 from Chocobo1/fix_ui
Cleanup Connection page
2016-06-08 13:13:23 -05:00
Chocobo1
5efc45190a Fix widget name collision.
Small cleanup on Downloads page.
2016-06-07 20:49:27 +08:00
Chocobo1
0ad33bf9ac Let user able to specifiy a filter when choosing an IP filter file 2016-06-07 20:49:27 +08:00
Chocobo1
d32c9470a0 Fix reload button size is not the same size as "..." button.
Rename Connection tab page
2016-06-07 20:49:27 +08:00
Chocobo1
c85a0a41ba Rename "options.ui" to "optionsdlg.ui"
Rename class name "options_imp" to "OptionsDialog"
Rename "options_imp.cpp" to "optionsdlg.h"
2016-06-07 20:49:27 +08:00
Chocobo1
97ee63fc78 Move options ui as a pointer member variable 2016-06-07 20:49:27 +08:00
Chocobo1
05cbb35814 Follow header inclusion rule 2016-06-07 20:49:23 +08:00
Chocobo1
df95efe33e Improve usability of "Run External Program"
Users can write (platform dependent) shell scripts now.
2016-06-07 00:39:27 +08:00
Chocobo1
def27bce4d Add log messages 2016-06-04 11:28:44 +08:00
ngosang
95eb0efabe [search engine] Remove filters from Demonoid 2016-06-03 23:48:52 +02:00
ngosang
12de907732 [search engine] Remove filters from Torrentreactor and BTDigg 2016-06-03 23:48:52 +02:00
sledgehammer999
fd996f15f0 Merge pull request #5339 from evsh/files-tooltip
Fix empty tooltips showed at the progress bar borders
2016-06-02 14:53:14 -05:00
Eugene Shalygin
0b1a9220a9 Fix empty tooltips showed at the progress bar borders
If tooltip text contains an empty HTML body, Qt still shows it as an
empty rectangle. Thus, output HTML tags only if we are within the
image region, and return true empty string if we are at the borders.
2016-06-02 20:51:57 +02:00
Chocobo1
98215d2231 Cleanup Connection page in Option dialog.
Add vertical spacer, closes #845.
2016-06-03 01:32:53 +08:00
sledgehammer999
95fbff3a53 Merge pull request #4936 from evsh/files-tooltip
Improve tooltips for torrent progress bar
2016-06-02 09:54:12 -05:00
sledgehammer999
978d1e1d3e Merge pull request #5336 from ngosang/pythonversion
Update Python version requirements
2016-06-02 07:20:25 -05:00
Eugene Shalygin
5f2362dc89 Replace TorrentHandle::fileExtremityPieces() with TorrentInfo::filePieces() 2016-06-02 10:30:35 +02:00
Eugene Shalygin
b3378d4599 Show files in tooltips for pieces progress bars
In addition to the current tooltip, which shows color legend, if user
holds the Shift key during hovering we show another tooltip which
contains a table of contents for the piece under the moue cursor. The
table lists file sizes and names. If the cursor points to a part of a
file which spans several pieces, those pieces are highlighted.
2016-06-02 10:30:28 +02:00
sledgehammer999
307f2919a3 Merge pull request #5334 from evsh/uncrustify
uncrustify: replace "add" with "force" for sp_ parameters
2016-06-01 18:30:47 -05:00
ngosang
88626b26d2 Update Python version requirements 2016-06-01 16:05:37 +02:00
Eugene Shalygin
f9c2bd3502 Follow project coding style. Issue #2192. 2016-05-31 19:42:08 +02:00
Eugene Shalygin
f9aeb5783d uncrustify: replace "add" with "force" for sp_ parameters
This will make uncrustify able to remove excessive spaces
2016-05-31 18:51:59 +02:00
sledgehammer999
8e64ffba01 Merge pull request #4937 from Chocobo1/option_crash
Fix crash when qbt exits with options dialog opened
2016-05-30 19:36:16 -05:00
sledgehammer999
7600e273dc Merge pull request #5328 from ngosang/searchui
Minor changes in Search UI
2016-05-30 19:25:41 -05:00
sledgehammer999
da1d6b0063 Merge pull request #5329 from ngosang/torrentz
[Search engine] Update Torrentz
2016-05-30 19:20:54 -05:00
ngosang
bd318bd004 [Search engine] Update Torrentz 2016-05-30 23:04:34 +02:00
ngosang
204f3d8542 Minor changes in Search UI 2016-05-30 22:51:09 +02:00
sledgehammer999
fee8aba610 Merge pull request #5317 from ngosang/piratebay
[Search engine] Update PirateBay
2016-05-28 18:20:48 -05:00
ngosang
47a252e517 [Search engine] Update PirateBay 2016-05-28 18:22:02 +02:00
sledgehammer999
f373ca82c6 Merge pull request #5316 from ngosang/minorfixx
Minor fix: typo and two warnings
2016-05-28 09:19:34 -05:00
ngosang
363e19be7f Minor fix: typo and two warnings 2016-05-28 15:24:59 +02:00
sledgehammer999
5878d49f60 Fixup previous commits and allow IPv6 interface addresses too. 2016-05-27 01:37:16 +03:00
sledgehammer999
1397a951fe Merge pull request #5096 from Harekiet/kietC
Bind directly to an IP instead of using a network Interface
2016-05-26 17:36:22 -05:00
sledgehammer999
6f16890475 Merge pull request #5306 from evsh/search-visited-link-colors
Use QPalette::LinkVisited color for downloaded items in search results
2016-05-26 16:15:35 -05:00
Eugene Shalygin
f05793c2e3 Use QPalette::LinkVisited color for downloaded items in search results 2016-05-26 22:51:33 +02:00
sledgehammer999
c2abbed055 Sync translations from Transifex and run lupdate. 2016-05-25 20:24:19 +03:00
sledgehammer999
81ea07abee Rename ASM to TMM and related stuff. 2016-05-25 20:07:36 +03:00
sledgehammer999
bc270bd801 Add tooltip to the saving mode checkbox. 2016-05-25 20:02:28 +03:00
sledgehammer999
df22c5a914 Slim down 'Downloads' page of options window. 2016-05-25 20:01:40 +03:00
sledgehammer999
6812b74bbf Merge pull request #5293 from botmtl/master
default RSSRefreshInterval to 30 mins
2016-05-24 06:10:42 -05:00
sledgehammer999
e2bf462a45 Fix gcc 6 compilation with qmake. See #5237. 2016-05-24 14:05:07 +03:00
sledgehammer999
57dac8d5f7 Merge pull request #5277 from Chocobo1/circular
Minor refactor
2016-05-24 00:03:38 -05:00
Chocobo1
b4bdfa7b2b Use QString::localeAwareCompare for comparsion 2016-05-24 10:44:42 +08:00
Chocobo1
f13c604fbe Use boost:circular_buffer instead of QList.
QList has to store an additional pointer for each element which leads to bad space efficiency.
2016-05-24 10:44:42 +08:00
botmtl
0ca31deedb default RSSRefreshInterval to 30 mins
closes issue #5235 (https://github.com/qbittorrent/qBittorrent/issues/5235)
2016-05-23 21:49:06 -04:00
sledgehammer999
00b5d52eab Merge pull request #5227 from ngosang/addtrackers
[WebUI] Expose Add trackers feature
2016-05-23 16:53:45 -05:00
sledgehammer999
42fec52b0d Merge pull request #2315 from pmzqla/webui-logs
WebUI: Allow to get the logs
2016-05-23 16:51:38 -05:00
sledgehammer999
fed2609cb2 Merge pull request #4888 from SeigneurSerpent/source_line
Stack trace for windows now contains source filenames and line numbers
2016-05-23 16:49:17 -05:00
SeigneurSerpent
7398e7f0ad Improve stack trace for windows by including source filenames and line numbers 2016-05-23 22:37:24 +03:00
sledgehammer999
57a61c48a2 Merge pull request #5270 from evsh/uncrustify
update uncrustify config
2016-05-22 20:12:37 -05:00
Eugene Shalygin
7f40e42ddc update uncrustify config 2016-05-23 02:40:08 +02:00
sledgehammer999
fc0746eb71 Merge pull request #5245 from thalieht/resolveCountries
Minor refactor in PeerListWidget
2016-05-17 17:55:11 -05:00
thalieht
4baa6dde52 resize column to contents only when they're visible
refactor updatePeerCountryResolutionState
deprecate m_resolveCountries var
2016-05-18 00:44:41 +03:00
sledgehammer999
529c208170 Merge pull request #5262 from Chocobo1/text
Improve wordings 2
2016-05-17 14:40:47 -05:00
Chocobo1
c907a2f857 Cleanup headers
Code formatting
2016-05-18 00:46:43 +08:00
Chocobo1
6ead0ae9ee Add lookup function to get PathType display names 2016-05-18 00:46:43 +08:00
Chocobo1
83b58468d9 Improve error messages for "Auto download torrents" 2016-05-17 23:49:07 +08:00
Gabriele
01b73bf704 WebUI: Add command to get the logs
Add /query/getLog and /query/getPeerLog to respectively retrieve
the main log and the peer log.

GET /query/getLog
Params:
 - normal (bool): include normal messages (default true)
 - info (bool): include info messages (default true)
 - warning (bool): include warning messages (default true)
 - critical (bool): include critical messages (default true)
 - last_known_id (int): exclude messages with id <= 'last_known_id'

GET /query/getPeerLog
Params:
 - last_known_id (int): exclude messages with id <= 'last_known_id'
2016-05-17 12:13:59 +02:00
sledgehammer999
673b86c6e3 Merge pull request #5258 from glassez/alert_notify
Use new alert dispathing API. Fixes compilation with libtorrent-1.1.x
2016-05-17 02:36:31 -05:00
Vladimir Golovnev (Glassez)
a318040eaa Use new alert dispathing API 2016-05-17 07:58:38 +03:00
sledgehammer999
14b867e1f6 Merge pull request #5192 from barhom/completed-on-column
Added 'Added on' column in Webui. Closes #5145,#1092,#738
2016-05-16 16:17:36 -05:00
sledgehammer999
4ca1a2d5aa Merge pull request #5251 from Chocobo1/text
Improve wordings
2016-05-16 11:50:44 -05:00
Chocobo1
8a1d387c38 Change ambiguous text "Copy selected" to "Copy IP:port" 2016-05-16 14:29:59 +08:00
Chocobo1
dbf744a179 Change "Auto download torrent" default save path to "default location". 2016-05-16 14:29:59 +08:00
Chocobo1
6ea89bf621 Improve wordings in "Auto download torrent" section 2016-05-16 14:29:59 +08:00
sledgehammer999
4f78a50add Merge pull request #5249 from evsh/auto-remove-torrents
Fix a typo in TorrentFileGuard and a crash when adding torrent via magnet link
2016-05-15 15:59:37 -05:00
Eugene Shalygin
a7495fa7b4 Fix crash when adding torrent via a magnet url
The file guard object has to be initialised in this case too because it
is accessed when dialog gets accepted or cancelled. Initialise it with
empty path.
2016-05-13 20:35:02 +02:00
Eugene Shalygin
47a3f1d93d Fix a typo in TorrentFileGuard 2016-05-13 00:12:33 +02:00
Ibrahim Tachijian
2cef805ab6 Add 'Added on' column in Webui. Closes #5145,#1092,#738 2016-05-10 15:23:24 +00:00
sledgehammer999
140016c068 Merge pull request #5223 from evsh/uncrustify
uncrustify: add constructor initialization list options
2016-05-09 14:28:55 -05:00
sledgehammer999
e22664da0f Merge pull request #5090 from evsh/auto-remove-torrents
Add option to automatically remove .torrent files upon adding
2016-05-09 07:05:09 -05:00
Eugene Shalygin
6e73fa80b8 Add option to automatically remove .torrent files upon adding
Some browsers do not download files, intended for immediate opening,
into a temporary directory, and thus a regular download directories
accumulate those unneeded files.

The option allows qBittorrent to clean after itself and delete those
files whether they were succesfully added or not (user-selectable
policy).
2016-05-09 11:52:36 +02:00
sledgehammer999
35c51ad3b1 Update definition of QBT_USES_QT5 to be true for qt >= 5.2.0 2016-05-08 19:28:02 +03:00
sledgehammer999
9c5a5fc83d Merge pull request #3908 from Chocobo1/rm_nsort
Replace `naturalSort()` with `naturalCompare()`.
2016-05-08 11:12:51 -05:00
Chocobo1
5906a4a2de Add case-sensitive & case-insensitive natural sort helper function
Fix helper function not being thread-safe
Use QBT_USES_QT5 define
2016-05-08 23:59:06 +08:00
sledgehammer999
f5855ae208 Merge pull request #5218 from Chocobo1/travis
Enable CI cache
2016-05-08 10:31:22 -05:00
sledgehammer999
5e7684ab50 Merge pull request #5225 from zywo/about-font-size
Set about tab font-size to default
2016-05-08 10:06:06 -05:00
sledgehammer999
fecf8501cb Merge pull request #5230 from Chocobo1/filterTracker
Fix "IP Filtering - Apply to trackers" wasn't being applied
2016-05-08 09:16:40 -05:00
Chocobo1
71143d1417 Use qmake built-in test function files to locate translation files 2016-05-08 21:47:28 +08:00
Chocobo1
f4f4e31a7a Use POSIX shell 2016-05-08 21:47:28 +08:00
Chocobo1
926cbb18ea Re-enable cache for linux builds
Enable cache for OSX builds
2016-05-08 21:47:28 +08:00
Chocobo1
a81cf1ea16 Fix "IP Filtering - Apply to trackers" wasn't being applied. Closes #5217. 2016-05-08 20:46:58 +08:00
ngosang
30b52b9825 [WebUI] Expose Add trackers feature 2016-05-07 15:17:01 +02:00
ngosang
be9bc07890 Display more information in tracker tab 2016-05-07 14:11:17 +02:00
zywo
49fb950195 Set about tab font-size to default 2016-05-06 09:36:10 +01:00
Eugene Shalygin
9e177a0a81 uncrustify: add constructor initialization list options 2016-05-06 01:29:09 +02:00
Chocobo1
d25430f377 Cleanup headers
Move `class NaturalCompare` to .cpp file
2016-05-04 16:35:26 +08:00
Chocobo1
f89d7c2f67 Suppress warning on OSX builds 2016-05-04 12:44:36 +08:00
sledgehammer999
f45ec40392 Merge pull request #5189 from evsh/uncrustify
uncrustify: honour pointer and reference symbols alignment rules
2016-05-03 15:06:20 -05:00
sledgehammer999
9f31b0ef4d Merge pull request #4959 from evsh/small-fix-for-settings-storage
refactor SettingsStorage class
2016-05-03 10:37:49 -05:00
sledgehammer999
f6ff680295 Merge pull request #5205 from evsh/cmake
cmake: fix powermanagement compilation
2016-05-03 08:28:04 -05:00
Eugene Shalygin
565847ceb3 cmake: add Qt::DBus library dependency for base module
This is needed for powermanagement and was mistakenly forgotten
2016-05-01 02:54:53 +02:00
Eugene Shalygin
f702d43973 cmake: mark libtorrent and qtsingleapplication include dirs as system 2016-05-01 02:54:37 +02:00
sledgehammer999
0143799623 Don't show added torrent notification during startup. 2016-04-30 01:38:24 +03:00
Eugene Shalygin
da379702a2 uncrustify: honour pointer and reference symbols alignment rules
Stick the '*' and '&' symbols to the variable name if there is one.
Also fix empty function bodies collapse option: replace it with the
eat_blanks_before_close_brace setting.
2016-04-26 15:21:09 +02:00
sledgehammer999
ef6e848756 Display notifications when a torrent is added. Closes #334 and #915. 2016-04-25 20:07:26 +03:00
sledgehammer999
31d04cffd9 Merge pull request #5181 from glassez/ext
Fix .!qB extension is added when disabled (#5141 regression hotfix)
2016-04-25 11:49:13 -05:00
Vladimir Golovnev (Glassez)
56287173b1 Fix .!qB extension is added when disabled 2016-04-25 15:30:41 +03:00
sledgehammer999
0a81152267 Merge pull request #5169 from glassez/tmpname
Use unique temp directories. Closes #5154.
2016-04-25 02:31:04 -05:00
sledgehammer999
e3265dd934 Merge pull request #5176 from evsh/cmake
cmake: reflect qmake project changes
2016-04-25 01:51:59 -05:00
Vladimir Golovnev (Glassez)
b8c703b8b0 Use truncated torrent hash in temp path 2016-04-25 08:39:36 +03:00
Vladimir Golovnev (Glassez)
850556fdfa Use unique temp directories
Save torrent in temp_path/<torrent_hash> directory.
Closes #5154.
2016-04-25 08:39:36 +03:00
Eugene Shalygin
d4e68a159f cmake: reflect qmake project changes 2016-04-25 04:41:19 +02:00
sledgehammer999
ab412ebf37 Merge pull request #5135 from ngosang/ifces
Fix duplicate network interfaces. Closes #5131
2016-04-24 17:49:39 -05:00
sledgehammer999
4ebb12e06b Merge pull request #5141 from glassez/recheck
Fix torrent adding with existing data
2016-04-24 12:41:50 -05:00
ngosang
3a49485039 Fix duplicate network interfaces. Closes #5131 2016-04-24 18:45:15 +02:00
sledgehammer999
ab65c04e0e Merge pull request #5137 from Chocobo1/fix_ui
UI fixes
2016-04-24 11:05:35 -05:00
sledgehammer999
3186541f49 Merge pull request #5170 from ngosang/fixsearch
[Seach engine] Update Torrentz, Mininova and LegitTorrents plugins
2016-04-24 10:49:08 -05:00
sledgehammer999
f80df53532 Merge pull request #5162 from evsh/uncrustify
uncrustify: add "slots" to WORDs keywords.
2016-04-24 10:47:22 -05:00
sledgehammer999
7d0bdc2863 Merge pull request #5160 from ngosang/trackersfix
Fix Add tracker dialog bugs
2016-04-24 10:45:01 -05:00
sledgehammer999
071b3981f7 Merge pull request #5143 from evsh/cmake
Cmake: clean cmake files
2016-04-24 10:40:43 -05:00
sledgehammer999
ff8b0944a2 Merge pull request #5140 from glassez/coding
Add coding style rule for header inclusion order
2016-04-24 10:40:10 -05:00
ngosang
e542f17809 [Search engine] Fix LegitTorrents plugin 2016-04-23 23:18:48 +02:00
ngosang
06cd41801e [Search engine] Fix Mininova plugin 2016-04-23 22:37:19 +02:00
ngosang
e4349e8db1 [Search engine] Fix Torrentz plugin for Python2 2016-04-23 21:57:05 +02:00
Eugene Shalygin
3f53f17411 cmake: raise minimal cmake version to 3.5 and use its features 2016-04-23 02:02:13 +02:00
Eugene Shalygin
8b64dd95a5 cmake: drop explicit Boost dependency
We get it implicitly from libtorrent
2016-04-23 02:02:13 +02:00
Eugene Shalygin
e809b042aa Add "slots" to WORDS keyword.
Uncrustify inserts line break between an access specifier and "slots".
However, it keeps these words combinations if "Q_SLOTS" is used.
Its built-in parser classifies "Q_SLOTS" as WORD token, thus let's add
"slots" to that class.
2016-04-23 01:57:28 +02:00
ngosang
7fe5674b9a Fix Add tracker dialog URL download 2016-04-22 23:48:06 +02:00
ngosang
b7ef066545 Fix Add tracker dialog empty trackers 2016-04-22 23:47:22 +02:00
Sjoerd van der Berg
220f6b1da2 Use a combo box to select the IP address you want to listen on for a specific interface 2016-04-21 18:21:49 +02:00
Vladimir Golovnev (Glassez)
599166ed0f Delete Import Torrent Dialog 2016-04-20 15:45:17 +03:00
Vladimir Golovnev (Glassez)
2fb6bb00bf Fix rechecking after torrent is finished 2016-04-20 15:45:15 +03:00
Vladimir Golovnev (Glassez)
e0d9ae3116 Try to find incomplete files for new torrent 2016-04-20 15:45:03 +03:00
Vladimir Golovnev (Glassez)
1bf24acff7 Add coding style rule for header inclusion order 2016-04-20 15:40:28 +03:00
Chocobo1
8366fced96 Fix mutually exclusive radio buttons can be unselected. 2016-04-20 09:08:58 +08:00
Chocobo1
96ce409cd1 Enable word wrap for "Run external program" help text 2016-04-19 16:54:11 +08:00
Chocobo1
c52a964a8a Fix toolbar resizing when m_searchFilter appears/disappears. Closes #5120. 2016-04-19 16:54:11 +08:00
Chocobo1
2c2638c1fe Disable comboHideZero when checkHideZero is unchecked.
Disable `checkLimituTPConnections` when `checkuTP` is unchecked.
Minor code formatting
2016-04-19 16:52:25 +08:00
Eugene Shalygin
473e23f992 cmake: add imported target for Libtorrent 2016-04-18 21:23:03 +02:00
Chocobo1
513e8f246b Morph QToolButton to QPushButton 2016-04-18 15:41:22 +08:00
Chocobo1
7bebc36cd5 Fix path to resource 2016-04-18 15:31:27 +08:00
Chocobo1
626a224382 Minor code formatting 2016-04-18 14:27:44 +08:00
Chocobo1
c3bde7c910 Sort labels with naturalCompare(). Closes #3919. 2016-04-18 14:27:44 +08:00
Chocobo1
d65ff87148 Replace naturalSort() with naturalCompare(). 2016-04-18 14:27:44 +08:00
Vladimir Golovnev (Glassez)
8e9b0d97ec Fix torrent adding with existing data 2016-04-18 08:30:49 +03:00
sledgehammer999
f22aee2bff Merge pull request #5134 from ngosang/updateall
Fix Update all button height in RSS tab
2016-04-17 15:07:42 -05:00
sledgehammer999
2d8d3c8152 Merge pull request #5057 from ngosang/statics
Minor change in Stats dialog
2016-04-17 14:13:43 -05:00
ngosang
2136e41fad Fix Update all button height in RSS tab 2016-04-17 20:52:38 +02:00
ngosang
bde762cb11 Minor change in Stats dialog 2016-04-17 19:59:09 +02:00
sledgehammer999
a8d2590a4c Display the filepath when a torrent fails to load. Closes #100 and #805. 2016-04-17 20:50:56 +03:00
sledgehammer999
36f894d0d8 Merge pull request #3976 from jleclanche/master
License file copy/paste fixes
2016-04-17 12:20:35 -05:00
sledgehammer999
18148a3aed Merge pull request #5127 from Chocobo1/shutdown
Fix Shutdown confirmation
2016-04-17 12:16:03 -05:00
sledgehammer999
49586441f3 Fix log menu item position broken by 1760beed17. 2016-04-17 19:59:58 +03:00
sledgehammer999
4c79a1d766 Bump API_VERSION to 11. 2016-04-17 19:57:08 +03:00
Chocobo1
34db2f5dd9 Fix qBittorrent doesn't exit immediately when "all donwloads are done -> exit" option enabled.
This fix is provided by glassez.
2016-04-18 00:46:47 +08:00
Chocobo1
fbc002f212 Enable access to shutdown functions when configured with --disable-gui option 2016-04-18 00:45:37 +08:00
sledgehammer999
2a20855c17 Merge pull request #4661 from buinsky/WebUI_labels_menu
WebUI: Implement labels filter context menu
2016-04-17 11:36:58 -05:00
Chocobo1
a1e0fa5509 Fix Coverity Scan 143909.
Also, the setting "Confirmation on auto-exit when downloads finish" wasn't working before.
2016-04-18 00:35:08 +08:00
sledgehammer999
2d0b9e6538 Merge pull request #5111 from Chocobo1/refactor_shutdowndlg
Cleanup shutdowndlg
2016-04-17 11:23:07 -05:00
sledgehammer999
3be35743ac Merge pull request #5124 from Chocobo1/fix_warnings
Fix warnings
2016-04-17 11:11:25 -05:00
sledgehammer999
2c459e8f74 Merge pull request #5132 from evsh/cmake
cmake: fix resources initialization and simplify QtSingleApplication linkage
2016-04-17 10:28:59 -05:00
Chocobo1
f741d3131d Delete all mainwindow child widgets. Closes #4871, #5049.
Some of the `delete` can be handled by the findChild loop
2016-04-17 18:51:35 +08:00
Chocobo1
e2a090f03f Use QAtomicInt to guarantee cleanup() is only executed once 2016-04-17 18:48:22 +08:00
Eugene Shalygin
7c0b5818b1 cmake: add imported target for QtSingleApplication
This simplifies cmake code a bit: we remove if's and just generate
different target (imported or alias) with the same name and use it
unconditionally.
2016-04-17 01:07:15 +02:00
Eugene Shalygin
f050f15a0c cmake: fix Qt resources linkage. Closes #5080
Qt resource is innitialized by a static object constructor (see
https://wiki.qt.io/QtResources). When we put resources into a static
library, the linker removes that static objects and thus the resources
themselves. To correct that we append resources to the main executable
sources list. This is done via custom function qbt_target_sources which
knows where to read the executable' name.
2016-04-17 01:06:24 +02:00
Chocobo1
7d5ab68f50 Fix Coverity Scan cid 143911.
`filesCount()` could return a negative value.
2016-04-16 12:37:23 +08:00
Chocobo1
a12d82524a Fix class member initialize order 2016-04-16 12:31:41 +08:00
Chocobo1
75bdfe971b Fix warnings in mainwindow.ui. Closes #5117.
gui/mainwindow.ui: Warning: The name 'actionExecutionLogs' (QAction) is already in use, defaulting to 'actionExecutionLogs1'.
gui/mainwindow.ui: Warning: action `actionSearch_engine' not declared
gui/mainwindow.ui: Warning: action `actionRSS_Reader' not declared
2016-04-16 12:27:33 +08:00
Chocobo1
f12e21560a Rename files:
confirmshutdowndlg.ui => shutdownconfirmdlg.ui
shutdownconfirm.cpp => shutdownconfirmdlg.cpp
2016-04-14 14:50:59 +08:00
Chocobo1
65d9739c6c Enlarge dialog size. Closes #5091.
This avoids text clipping when using Qt4 lib.
2016-04-14 14:50:59 +08:00
Chocobo1
6a11056b60 Rename enum
Change identifier from ShutdownAction to ShutdownDialogAction
Change enum value from None to Exit
2016-04-14 14:50:59 +08:00
Chocobo1
d3fb46663c Refactor
Add helper function to initialize shutdown message.
Group similar functions together.
Merge shutdown() function into its only caller.
Add override keyword
2016-04-14 14:25:12 +08:00
sledgehammer999
e4c0da4ed4 Merge pull request #5083 from glassez/coding
Fix coding style rules. Closes #5075
2016-04-13 08:49:01 -05:00
Vladimir Golovnev (Glassez)
f89819bbdb Fix coding style rules
Closes #5075
2016-04-13 16:24:38 +03:00
sledgehammer999
32490f1ef6 Merge pull request #4995 from Chocobo1/border
Search UI tweaks
2016-04-13 07:11:31 -05:00
sledgehammer999
a33cfc26dc Merge pull request #5085 from glassez/nova2dl
Use nova2dl.py script instead of DownloadManager. Closes #5026
2016-04-13 07:07:01 -05:00
Sjoerd van der Berg
03d1dad2a3 Fix variable name 2016-04-13 11:17:36 +02:00
Sjoerd van der Berg
c7c71d3c88 Change back to the original names for the announce address
Only allow ip's through that match the currenrly selected network interface and address
2016-04-13 10:51:29 +02:00
Vladimir Golovnev (Glassez)
a9e63283cc Use nova2dl.py script instead of DownloadManager
Closes #5026
2016-04-13 08:06:06 +03:00
sledgehammer999
b13c991f4b Sync translations from Transifex and run lupdate. 2016-04-13 02:02:07 +03:00
sledgehammer999
cd4f288f67 Follow project coding style. Issue #2192. 2016-04-13 01:53:54 +03:00
sledgehammer999
5e796054ba Merge pull request #4261 from onto/master
SpeedPlotView: speedup
2016-04-12 17:42:32 -05:00
sledgehammer999
b8060bc507 Merge pull request #5038 from Chocobo1/fix_resizing
Fix resizing bug in "add torrent dialog"
2016-04-12 16:56:09 -05:00
sledgehammer999
29394293ed Merge pull request #5108 from Chocobo1/ui_fixes
Fix long text clipping. Closes #5091.
2016-04-12 15:55:32 -05:00
sledgehammer999
50f7c734cb Merge pull request #5101 from evsh/deduplicate-search-download-code
Remove duplicated code from search tab and widget
2016-04-12 15:31:25 -05:00
sledgehammer999
8cb4e7934e Merge pull request #5104 from evsh/cmake
cmake: reflect qmake project changes
2016-04-12 15:21:41 -05:00
sledgehammer999
e3409228da Fix qt5 bundle on OSX. Closes #4014. 2016-04-12 23:19:02 +03:00
Chocobo1
1099a5006f Cleanup header include
Code formatting
2016-04-13 02:45:08 +08:00
sledgehammer999
87e8bc5722 Change gpg signing key.
I forgot the passphrase to the old one.
2016-04-12 20:07:04 +03:00
Chocobo1
71ec5c5c05 Fix long text clipping. Closes #5091. 2016-04-13 01:07:00 +08:00
Chocobo1
216d98844b Move m_searchPattern widget from code to .ui file 2016-04-12 16:14:09 +08:00
Chocobo1
a52f9d4ef9 [Search] Add seperator for categories & plugins
Sort categories & plugins entries
Rename & reorder entries
Use full name for plugins
2016-04-12 16:14:08 +08:00
Chocobo1
231262ad8e [Search] match combobox height to button height 2016-04-12 11:38:27 +08:00
Chocobo1
2d6669b88d [Search] minor cleanups 2016-04-12 11:38:27 +08:00
Eugene Shalygin
f51753f166 cmake: reflect qmake project changes 2016-04-12 02:07:10 +02:00
sledgehammer999
484cd2f1ce Merge pull request #4670 from glassez/rsscookies
Implement application wide cookies management dialog. Closes #4638
2016-04-11 18:54:36 -05:00
Vladimir Golovnev (Glassez)
1760beed17 Fix MainWindow coding style (Issue #2192) 2016-04-11 19:15:50 +03:00
Vladimir Golovnev (Glassez)
a6595507f0 Fix macro define cross over access specifiers 2016-04-11 19:15:48 +03:00
Vladimir Golovnev (Glassez)
c193d448d8 Delete old RSS cookies dialog 2016-04-11 19:15:47 +03:00
Vladimir Golovnev (Glassez)
c982813acb Create basic cookies management dialog 2016-04-11 19:14:28 +03:00
Vladimir Golovnev (Glassez)
95ddc57c13 Implement basic cookies model 2016-04-11 16:58:28 +03:00
Eugene Shalygin
5063940138 Remove duplicated code from search tab and widget
Both download handlers (in the tab and widget classes) convert model
index into an URL, set row color, and call download function.
Make the download button handler (in the SearchWidget class) call the
slot of the SearchTab class.
2016-04-11 14:00:50 +02:00
sledgehammer999
feab999093 Merge pull request #5070 from Chocobo1/icon_sizehint
Improve TransferListDelegate::sizeHint
2016-04-10 11:39:06 -05:00
Sjoerd van der Berg
e2f43b3383 Add option to bind directly to an IP instead of using a network Interface 2016-04-09 09:19:22 -07:00
Bert Verhelst
13e67f176a resized icons to 32px by 32px 2016-04-08 20:59:46 +02:00
sledgehammer999
43d52026b7 Merge pull request #5077 from ngosang/warnings
Fix uic warnings. Closes #5056
2016-04-05 17:19:15 -05:00
sledgehammer999
acef6ad973 Merge pull request #5069 from Chocobo1/dpi
More DPI changes
2016-04-05 17:18:18 -05:00
sledgehammer999
b30048202a Merge pull request #3989 from evsh/filter-search
Implement search filters. Partially closes #972
2016-04-05 17:17:27 -05:00
Eugene Shalygin
cc09e7e834 refactor SettingsStorage class
1. Extract "transaction" support for QSettings into separate class
TransactionalSettings.
2. Define macrto with explicit name for the case when this "transaction"
support is needed.
3. A bit optimize QHash <-> QSettings copying: replace assign with
insert() and remove repetitive key lookups.
4. In save() check dirty status before getting the lock too.

The changes from items 1 and 2 make text more structured and the logic
of the SettingsStorage class gets separated from the implementation level
task of guarding the settings serialization. The changes in 3 and 4 do not
make the app much faster, but neither make any harm to the code readability.
2016-04-05 18:43:00 +02:00
sledgehammer999
364c22bee7 Fix indentation. 2016-04-05 00:54:10 +03:00
Anton Lashkov
cdab0bb140 SpeedPlotView: code correction 2016-04-04 23:05:25 +04:00
Anton Lashkov
8a6866d409 SpeedPlotView: Simplify code using PointData struct 2016-04-04 23:05:25 +04:00
Anton Lashkov
b599a8e2fb SpeedPlotView: Use separate buffers for periods with reduce number of points. Fix coding style. 2016-04-04 23:05:25 +04:00
Anton Lashkov
baadf34134 SpeedPlotView: Save int's instead of double's 2016-04-04 23:05:25 +04:00
Anton Lashkov
dd9728334a SpeedPlotView: Replace QQueue by boost::circular_buffer, reduce number of points to draw, increase legend background size 2016-04-04 23:05:25 +04:00
ngosang
ce41702cbe Fix uic warnings. Closes #5056 2016-04-04 20:21:10 +02:00
Chocobo1
4eadda5c9a Improve TransferListDelegate::sizeHint 2016-04-04 19:03:27 +08:00
Chocobo1
f651062991 Let windows handle all widgets scaling.
Declare ourselves as a Non DPI–aware app.
Tested with Qt 5.6.
2016-04-04 16:44:44 +08:00
Chocobo1
7d3e903db0 Fix resizing bug in "add torrent dialog". Closes #5036.
1. Place all widgets in "Torrent information" into the same grid layout
instead of different layouts.
2. Tweak tab order.
2016-04-04 16:41:21 +08:00
Eugene Shalygin
b6b819a2a1 Optimize widgets inside of the search tab
Since we already have searchtab.ui, let's set up all the widgets there.
Additionally, save a bit of vertical space by putting results label in
a row with the filter widgets.
2016-04-04 02:10:09 +02:00
Eugene Shalygin
1336cb7a61 Implement search filters in the proxy model. Partially closes #972 2016-04-04 02:09:32 +02:00
sledgehammer999
cd2496215e Merge pull request #5043 from evsh/uncrustify
update uncrustify config
2016-04-03 16:50:49 -05:00
sledgehammer999
2b0ad4477e Fix memory leak. 2016-04-04 00:10:18 +03:00
Eugene Shalygin
57605cb840 update uncrustify config 2016-03-31 15:56:19 +02:00
sledgehammer999
93d8cadaaf Bump API_VERSION and API_VERSION_MIN. 2016-03-29 23:15:11 +03:00
sledgehammer999
fdc44871ca Fix public key commit again. 2016-03-28 22:15:24 +03:00
sledgehammer999
7f6e6264a8 Fix newlines in previous commit. 2016-03-28 22:13:33 +03:00
sledgehammer999
3db384efd5 Add public key used for signing source tarballs and binaries. 2016-03-28 22:10:54 +03:00
sledgehammer999
845f962bc2 Sync translations from Transifex and run lupdate. 2016-03-28 21:36:48 +03:00
sledgehammer999
ad1b5bdd47 Merge pull request #5021 from evsh/cmake
cmake: fix compilation
2016-03-28 13:27:00 -05:00
sledgehammer999
4c02bdb092 Merge pull request #5020 from Chocobo1/rss_exec
Minor UI tweaks
2016-03-28 13:25:38 -05:00
sledgehammer999
0c3813c9c5 Merge pull request #5022 from ngosang/torlock2
[Search engine] Added TorLock search engine. Fix #5012
2016-03-28 13:17:05 -05:00
Eugene Shalygin
1d6a1db491 cmake: make it compile on OS X 2016-03-28 19:59:11 +02:00
Eugene Shalygin
1e9bbce249 cmake: fix compilation 2016-03-28 19:44:59 +02:00
Bert Verhelst
0dd8f21511 Merge branch 'master' into stylized-icons-main-bar
# Conflicts:
#	src/icons/skin/ratio.png
2016-03-28 15:07:31 +02:00
Chocobo1
f1b5815f95 Minor cleanups in RSS 2016-03-28 18:32:28 +08:00
sledgehammer999
696ea0bf94 Merge pull request #5005 from ngosang/crash_fix
Potential fix for crash. Closes #4990, #4905, #4864, #4855, #4818, #4726,  #4648
2016-03-27 15:49:14 -05:00
sledgehammer999
c2b6e1ce1a Fix periodic latency spikes on Windows with WiFi connections. Closes #4209. 2016-03-27 22:53:40 +03:00
Chocobo1
c474810294 Beautify messages
And some refactor
2016-03-27 22:27:13 +03:00
Chocobo1
5c5b007618 confirmshutdowndlg.ui cleanup
shutdownconfirm.cpp cleanup
2016-03-27 22:26:57 +03:00
sledgehammer999
18ee87f586 Fix previous commit. 2016-03-27 22:26:00 +03:00
sledgehammer999
2b8327c807 Merge pull request #4218 from d3faultdotxbe/master
Add 'never show again' checkbox/pref to auto-exit confirm dialog
2016-03-27 14:24:50 -05:00
sledgehammer999
fa8bae8931 Fix commit about Esperanto. Closes #4999 again. 2016-03-27 21:06:28 +03:00
sledgehammer999
69a7747d4b Merge pull request #5014 from Chocobo1/fix_caja
Fix "Open Containing Folder" for caja
2016-03-27 11:14:40 -05:00
sledgehammer999
fb8e7a2084 Merge pull request #5012 from ngosang/torlock
[Search engine] Added TorLock search engine
2016-03-27 11:10:59 -05:00
sledgehammer999
bdd31b8f82 Merge pull request #4997 from ngosang/fix_python2_encoding
[Search engine] Python2 encoding and URL getting mechanism in BTDigg
2016-03-27 11:09:45 -05:00
ngosang
9207689941 [Search engine] Added TorLock search engine. Fix #5012 2016-03-27 17:38:49 +02:00
ngosang
b86f92212f [Search engine] Added TorLock search engine 2016-03-27 16:20:27 +02:00
Chocobo1
851d97d95e Fix "caja" file manager opens the file instead of opens the directory. Closes #5003.
Now it opens the directory correctly.
2016-03-27 16:41:34 +08:00
sledgehammer999
1eb6b05bbb Merge pull request #4961 from glassez/codingstyle
Add new Coding Style rules for some c++11 features
2016-03-26 06:42:43 -05:00
Vladimir Golovnev (Glassez)
645c3bf69f Add new Coding Style rules for some c++11 features 2016-03-26 08:11:52 +03:00
sledgehammer999
cef150eee6 Fix selection of Esperanto locale. Closes #4999. 2016-03-26 03:23:39 +02:00
sledgehammer999
d721939d5f Use SettingsStorage instead. 2016-03-26 01:50:13 +02:00
sledgehammer999
663791fac2 Raise the max log entries limit. 2016-03-26 01:39:13 +02:00
sledgehammer999
1058572c8a Implement file logger. 2016-03-26 01:39:13 +02:00
sledgehammer999
73832a5ed8 Add ability to filter log messages by type. 2016-03-26 01:39:13 +02:00
sledgehammer999
b0c324ace8 Minor log widget code optimizations. 2016-03-26 01:39:13 +02:00
sledgehammer999
6a281bef8f Follow project coding style. Issue #2192. 2016-03-26 01:39:13 +02:00
ngosang
2ea1716c1a Potential fix for crash. Closes #4990, #4905, #4864, #4855, #4818, #4726, #4648 2016-03-25 20:38:18 +01:00
ngosang
e557634feb [Search engine] Change URL getting mechanism in BTDigg 2016-03-23 14:27:01 +01:00
ngosang
376ff79f16 [Search engine] Fix Python 2 encoding problems 2016-03-23 13:35:55 +01:00
Chocobo1
0bbdda32e8 Remove border around execution log 2016-03-23 15:23:49 +08:00
sledgehammer999
2f19594bef Merge pull request #4960 from ngosang/webui_minor
[WebUI] Add missing string
2016-03-21 07:58:58 -05:00
sledgehammer999
3b5d27093a Merge pull request #4975 from evsh/uncrustify
update uncrustify config
2016-03-20 13:22:48 -05:00
sledgehammer999
edb8670dc0 Merge pull request #4972 from Chocobo1/travis_trusty
TravisCI: switch to Trusty image
2016-03-20 12:09:09 -05:00
Chocobo1
09194f8e1b TravisCI: switch to Trusty image. Closes #4953.
Drop workaround for gcc-4.8
2016-03-21 00:24:30 +08:00
Eugene Shalygin
1a0bc3cf66 update uncrustify config 2016-03-18 17:51:19 +01:00
sledgehammer999
0da4bfa0cf Fix selection of Portuguese translation files.
Qt returns "Brazil" as country of QLocale("pt") instead of "Portugal". This conflicts with QLocale("pt_BR").
Rename the pt.ts to pt_PT and put a language mapping in tx's config for that locale.
Closes #4776.
2016-03-18 03:20:20 +02:00
sledgehammer999
3067f82aea Potential fix for crash. Closes #4607. 2016-03-18 01:52:43 +02:00
sledgehammer999
2bb76bf781 Don't display warning when folder named stayed the same.
Copy some code from AddNewTorrent dialog and beautify a bit.
Closes #4970.
2016-03-18 01:09:05 +02:00
sledgehammer999
7794502324 Correctly hide useless columns in AddNewTorrent file treeview. Closes #4955. 2016-03-18 00:23:11 +02:00
sledgehammer999
e48649ac3e Merge pull request #4463 from buinsky/b
Change appearance of speed labels in status bar
2016-03-16 18:26:31 -05:00
sledgehammer999
f91fa45860 Merge pull request #4561 from Chocobo1/appveyor
Add appveyor support
2016-03-16 16:28:35 -05:00
Chocobo1
c15ddbc53c Add appveyor support 2016-03-17 02:29:00 +08:00
buinsky
d63f9e751d WebUI: Select category on right click 2016-03-16 13:17:07 +03:00
buinsky
fc077257d0 WebUI: Don't show several context menus at the same time 2016-03-16 13:17:07 +03:00
buinsky
d265d2e1a0 WebUI: Adjust context menu position 2016-03-16 13:17:07 +03:00
buinsky
ead592647a WebUI: Implement delete torrents by category 2016-03-16 13:17:07 +03:00
buinsky
2c24c0bfbf WebUI: Implement pause torrents by category 2016-03-16 13:17:07 +03:00
buinsky
f7833c9f0c WebUI: Implement start torrents by category 2016-03-16 13:17:07 +03:00
buinsky
24584503d9 WebUI: Implement removing unused categories 2016-03-16 13:17:07 +03:00
buinsky
50f2437ac3 WebUI: Implement removing categories 2016-03-16 13:17:07 +03:00
buinsky
a4dca52617 WebUI: Implement adding categories 2016-03-16 13:17:07 +03:00
buinsky
a939fca4ac WebUI: Add empty context menu to categories filter 2016-03-16 13:17:07 +03:00
buinsky
d30a799b45 WebUI: Rename function updateCategoryFN to setCategoryFN 2016-03-16 13:17:07 +03:00
buinsky
c003229fcf WebUI: Refactor ContextMenu class 2016-03-16 13:17:07 +03:00
buinsky
dbf995480a WebUI: Change the order of the values of speed labels 2016-03-15 20:21:15 +03:00
buinsky
3361f1cd80 GUI: Change the order of the values of speed labels 2016-03-15 20:19:55 +03:00
ngosang
f53cc05f52 [WebUI] Add missing string 2016-03-15 15:50:10 +01:00
buinsky
99aeacf9b0 Refactoring of StatusBar::refreshStatusBar function 2016-03-15 15:18:50 +03:00
buinsky
2d9f90c3b5 Follow project coding style. Issue #2192. 2016-03-15 15:18:50 +03:00
sledgehammer999
45b68bd46c Sync translations from Transifex and run lupdate. 2016-03-15 00:40:44 +02:00
sledgehammer999
8c83fd5e24 Merge pull request #4916 from funkydude/master
Move some URLs overs to HTTPS
2016-03-14 12:15:46 -05:00
funkydude
268a5a95c8 Move some URLs overs to https 2016-03-14 17:01:51 +00:00
sledgehammer999
2efdddb9af Always delete partfile (libtorrent 1.1.x). 2016-03-14 14:53:14 +02:00
sledgehammer999
8c36f753f9 Merge pull request #4867 from evsh/peers-show-files
Show downloading files in peers list. Attempt #2
2016-03-13 19:14:48 -05:00
sledgehammer999
d39d40c064 Don't display Country option in PeerListWidget header menu when country resolution is disabled. 2016-03-14 01:17:59 +02:00
sledgehammer999
9a91ed501e Merge pull request #4767 from thalieht/toggle_peer_columns
Add toggle columns menu for peerlist. Closes #3301
2016-03-13 18:17:12 -05:00
sledgehammer999
502d633175 Merge pull request #4930 from Chocobo1/refactor
Minor refactor
2016-03-13 17:30:47 -05:00
sledgehammer999
d1ce5826e1 Merge pull request #4917 from Chocobo1/fix_comment_space
Fix additional space in comment label
2016-03-13 17:29:14 -05:00
sledgehammer999
1fb020fb3a Merge pull request #4939 from Chocobo1/option_tab_sel
Fix tab icons messed up.
2016-03-13 15:30:40 -05:00
Chocobo1
7ac7268b8f Fix tab icons messed up in Ubuntu 16. Closes #4929.
Fixup of 1c25603686.
The following settings default are different between DEs, so they must set explicitly:
movement, flow, isWarpping, resizeMode, viewMode
2016-03-11 14:13:33 +08:00
sledgehammer999
e21c346183 Merge pull request #4935 from evsh/cmake
cmake: fix library namaes for Qt5 version of QtSingleApplication
2016-03-10 14:30:41 -06:00
Eugene Shalygin
5fbac5da5b cmake: fix library namaes for Qt5 version of QtSingleApplication
At least on Gentoo they start with 'Qt5', not 'Qt'
2016-03-09 23:32:35 +01:00
Chocobo1
e7ff5eb6b1 Minor refactor 2016-03-09 14:08:44 +08:00
sledgehammer999
d41031ebf7 Merge pull request #4925 from evsh/cmake
cmake: copy qt version requirements from autotools
2016-03-07 15:52:15 -06:00
Eugene Shalygin
05e4d4fc0d cmake: copy qt version requirements from autotools
Set versions 4.8.0 and 5.2.0 as minimal required for Qt4 and Qt5.
2016-03-07 22:38:40 +01:00
sledgehammer999
8656c1897d Merge pull request #4922 from evsh/cmake
cmake: fix man installation
2016-03-07 14:17:02 -06:00
Eugene Shalygin
6800c1a6ad cmake: fix man installation
Fix copy-n-paste error: for non-GUI build we have to install
qbittorrent-nox.1, but not qbittorrent.1.
2016-03-07 15:15:38 +01:00
Chocobo1
dd2dcc4147 Fix additional space in comment label 2016-03-07 12:34:01 +08:00
thalieht
1fa6f3123b add toggle columns for peerlist 2016-03-06 23:59:36 +02:00
sledgehammer999
80ac326f28 Merge pull request #4911 from glassez/fixes
Fix save path bugs
2016-03-06 15:46:46 -06:00
Vladimir Golovnev (Glassez)
c047ef5b37 Fix save path bugs 2016-03-06 21:23:15 +03:00
sledgehammer999
b11ab06bb2 Merge pull request #4904 from UnDifferential/master
Support SSL certificate bundles. Closes #4896.
2016-03-06 10:49:14 -06:00
UnDifferential
f50a8d4f59 Support SSL certificate bundles. Issue #4896. 2016-03-05 14:10:28 -05:00
sledgehammer999
45617e086c Merge pull request #4908 from evsh/cmake
cmake: fix systemd unit install path
2016-03-05 13:05:30 -06:00
Eugene Shalygin
5996738030 cmake: fix systemd unit install path 2016-03-05 19:23:43 +01:00
sledgehammer999
46a355675e Fix commit 83e931766f (wrong conflict resolution). 2016-03-05 19:49:15 +02:00
sledgehammer999
89b334d71c Merge pull request #4451 from netjunki/master
add a remaining column to the torrent content model
2016-03-05 10:42:14 -06:00
sledgehammer999
8372c819e9 Merge pull request #4903 from evsh/cmake
fix cmake build
2016-03-05 08:51:34 -06:00
sledgehammer999
96c2947283 Merge pull request #4849 from Chocobo1/run_ext_slash
Save "Run external program" input as is. Closes #4830.
2016-03-05 08:51:14 -06:00
Chocobo1
83e931766f Add tip about adding quotation marks around parameter 2016-03-05 11:34:56 +08:00
Chocobo1
6835b99f10 Save "Run external program" input as is. Closes #4830. 2016-03-05 11:33:55 +08:00
Eugene Shalygin
45b1a75d56 fix cmake build 2016-03-05 00:36:17 +01:00
sledgehammer999
15ec515872 Merge pull request #4877 from evsh/cmake
add basic cmake support
2016-03-04 17:30:08 -06:00
sledgehammer999
0190ac9037 Merge pull request #4885 from Chocobo1/comment_scroll
Put comment_lbl in QScrollArea.
2016-03-04 17:28:42 -06:00
sledgehammer999
ee0306c4fd Merge pull request #4883 from evsh/fix-avg-speed-units
Fix typos in speed label text
2016-03-04 17:28:12 -06:00
sledgehammer999
56605cd0c3 Merge pull request #4865 from Chocobo1/os_name
Shorten crash report on windows
2016-03-04 17:27:48 -06:00
sledgehammer999
3ddb1b98b3 Merge pull request #4833 from dsemi/master
Do not try to parse request message when content-length is 0
2016-03-04 17:26:28 -06:00
sledgehammer999
8b559a8b51 Merge pull request #4824 from starius/mxe-compat
compatibility with MXE
2016-03-04 17:25:57 -06:00
sledgehammer999
1cfda610cc Merge pull request #4781 from DoumanAsh/python_align_search_style
[search engine] Align search engine url getting mechanism. Closes #4778
2016-03-04 17:25:05 -06:00
sledgehammer999
6ff929e567 Merge pull request #4784 from glassez/asm
Implement Advanced Saving Management subsystem
2016-03-04 17:22:06 -06:00
Vladimir Golovnev (Glassez)
dd34663224 Implement Advanced Saving Management subsystem
Closes #4696
2016-03-04 19:59:53 +03:00
Vladimir Golovnev (Glassez)
d05d5a85a5 Move Preferences backend code into SettingsStorage class
Closes #4764
2016-03-04 08:39:00 +03:00
Boris Nagaev
f4dc5c6809 configure: pass variable QMAKE_LRELEASE to qmake 2016-03-03 07:54:34 +03:00
Boris Nagaev
e4c8862cc5 winconf-mingw.pri: clean library names
* remove versions from libraries,
  * remove *.dll from libraries
    (actual name of library files can be "libfoo.a")
2016-03-03 07:52:57 +03:00
Boris Nagaev
39d8f09c38 winconf.pri: change example library path for build
Path with "<", ">" causes errors when building in MXE.
http://mxe.cc/

Removing or commenting out these hardcoded paths is not
desirable, as they serve as a guide (on what to edit) for
the newcomers that want to build on windows.

See https://github.com/qbittorrent/qBittorrent/pull/4824#issuecomment-186936960
2016-03-03 07:52:57 +03:00
Boris Nagaev
fa2a1ad6d3 winconf.pri: use mask "win32-g++*"
Mask "win32-g++" doesn't match MXE.
Mask "win32-g++*" match MXE.
See http://stackoverflow.com/a/14523545
See http://mxe.cc
2016-03-03 07:50:20 +03:00
Chocobo1
94ae44bb71 Put comment_lbl in QScrollArea. Closes #4881. 2016-03-02 12:05:56 +08:00
Eugene Shalygin
7080d3da98 Fix typos in speed label text
Qt's tr() ate 'true' parameter, which was supposed to be for
friendlyUnit()
2016-03-01 23:49:33 +01:00
Dan Seminara
d75564b885 Do not try to parse request message when content-length is 0 2016-02-29 15:57:34 -05:00
Eugene Shalygin
64daecb266 add basic cmake support 2016-02-29 12:53:43 +01:00
Chocobo1
d0e31adaf7 Create helper function to get libtorrent version 2016-02-28 17:47:43 +08:00
Chocobo1
12627bbc10 Create helper function to get boost version 2016-02-28 17:47:42 +08:00
Chocobo1
498f5e3877 Create helper function to get OS name 2016-02-28 13:23:06 +08:00
Eugene Shalygin
8baa144933 Use correct piece size while calling torrent_info::map_block()
This should fix crashes. Issue #4597
2016-02-27 21:07:54 +01:00
Eugene Shalygin
b24bdcb8d9 Revert "Temporarily revert PR #2885 (filename column in peers view)."
This reverts commit 69d52a06d7.
2016-02-27 20:51:39 +01:00
Chocobo1
7b2fab411c Comment out "List of linked Modules" section in windows crash report.
It is bloating the crash report with unhelpful messages.
2016-02-27 05:42:48 +08:00
Vladimir Golovnev (Glassez)
a96cabfe73 Make AddNewTorrentDialog behavior uniform 2016-02-23 16:02:17 +03:00
sledgehammer999
654c8edc6b Merge pull request #4831 from Chocobo1/mail_time
Fix malformed date header in email.
2016-02-21 16:41:31 -06:00
Chocobo1
f83f3b84ca Follow project coding style. Issue #2192. 2016-02-22 03:18:37 +08:00
Chocobo1
60417a598a Simplify statement 2016-02-22 03:18:35 +08:00
Chocobo1
41fe85b624 Fix malformed date header in email. Closes #4828. 2016-02-22 03:18:02 +08:00
sledgehammer999
c1f7446c26 Partially revert decfae7b8a. Newer libtorrent RC_1_1 has added back the missing variables. 2016-02-21 18:42:55 +02:00
sledgehammer999
12e1cae93c Merge pull request #4810 from Chocobo1/addtor_fixup
Remove additional vertical spacer.
2016-02-21 09:46:35 -06:00
Bert Verhelst
95df9c5cf6 Delete collapse-expand.svg
This is a gif and wont be as crisp
2016-02-20 13:52:09 +01:00
Bert Verhelst
4c4fb44363 Delete arrow-right.svg
This is a gif and won't be as crisp as the original
2016-02-20 13:51:45 +01:00
Bert Verhelst
d9cf1187d7 Added png converted files for skin icons 2016-02-20 12:57:41 +01:00
Bert Verhelst
403de336d2 Added the last of the skin icons (svg) 2016-02-20 12:52:30 +01:00
Chocobo1
ebc7997dbf Remove additional vertical spacer.
Fixup of 843f7ed.
2016-02-17 22:47:39 +08:00
sledgehammer999
cd85d00b3b Merge pull request #4251 from Chocobo1/200_scaling
Fix incorrectly displayed UI elements on Windows
2016-02-16 15:12:54 -06:00
Chocobo1
51b7e299b4 Simplify resize actions for AddNewTorrentDialog 2016-02-16 11:39:29 +08:00
Chocobo1
3b7fcf0813 Disable cell selection in advanced options. Fixup of a8b39475. 2016-02-16 11:39:29 +08:00
Chocobo1
76dd4ea5c0 Put links into table 2016-02-16 11:39:28 +08:00
Chocobo1
c5f5292d9e Set icon directly in .ui file 2016-02-16 11:39:27 +08:00
Chocobo1
b2527a0ad6 Make authors email clickable & selectable 2016-02-16 11:39:27 +08:00
Chocobo1
2fbb712f57 about_imp.h: Use larger qbt icon
Shrink title size
2016-02-16 11:39:26 +08:00
Chocobo1
1c25603686 Fix weird left panel icon layout
Remove Advanced page border
2016-02-16 11:39:25 +08:00
Chocobo1
aa246f0ca8 Let OS handle DPI scaling for now. Should let Qt do the work when it's more mature.
Opt-in to the high DPI pixmap support
Closes #2963.
2016-02-16 11:39:25 +08:00
Chocobo1
f410b29c99 Follow project coding style. Issue #2192. 2016-02-16 11:39:24 +08:00
Chocobo1
e35a7ef9d3 Move statusbar styelsheet to where it belongs 2016-02-16 11:39:23 +08:00
Chocobo1
f058e666e5 Use short date in addnewtorrentdialog
Correction "Free disk space" to "Free space on disk"
2016-02-16 11:39:23 +08:00
Chocobo1
843f7ede8f Cleanup addnewtorrentdialog.ui
Reorder Torrent info column
Rename "Save as" to "Save at"
2016-02-16 11:39:22 +08:00
sledgehammer999
b099a766e6 Don't merge trackers for private torrents. Closes #2928. 2016-02-15 03:24:22 +02:00
Douman
d5209d7ddf Align search engine url getting mechanism. Closes #4778
1. Switch to retrieve_url instead of low-level HTTPConnection module usage
2016-02-10 16:05:12 +03:00
sledgehammer999
f37aed868e Merge pull request #4744 from Chocobo1/splash_scrn
Fix potential race condition in showSplashScreen()
2016-02-09 09:50:22 -06:00
sledgehammer999
09d3f73154 Merge pull request #4772 from glassez/fix_crash
Fix crash caused by AdvancedSettings::addRow()
2016-02-08 14:29:37 -06:00
Vladimir Golovnev (Glassez)
9a393bbcea Fix crash caused by AdvancedSettings::addRow() 2016-02-08 18:25:40 +03:00
Chocobo1
a43db66d87 Cleanup about.ui
Shorten text in "Libraries" tab, to avoid About dialog being too wide
Make QLabels in Libraries tab selectable
Use QGroupBox in "Author" tabs
Rename "Thanks to" to "Special Thanks"
Rename "Translation" to "Translators"
Remove borders in "Thanks to", "Translation", "License" tabs
2016-02-07 11:18:28 +08:00
Chocobo1
a667f900c5 Set "Show splash screen on start up" option default to off 2016-02-07 10:48:51 +08:00
Chocobo1
65a30bab3f Cleanup about_imp.h
Fix dialog too narrow on highDPI screens
Remove IRC link
Rewrite about text to support RTL languages better
Follow project coding style. Issue #2192.
2016-02-06 10:12:43 +08:00
sledgehammer999
958b70e4ac Merge pull request #4403 from glassez/fastresume
Improve .fastresume saving and torrents starting up. Closes #4315.
2016-02-05 12:06:58 -06:00
Vladimir Golovnev (Glassez)
732f46cc69 Save resume data using QSaveFile (Qt5 only) 2016-02-05 20:29:30 +03:00
sledgehammer999
30819b3cbc Merge pull request #4675 from Chocobo1/hide_zeros
Hide zero & infinity values
2016-02-05 09:59:51 -06:00
Chocobo1
ee277bf126 Add "Paused torrents only" option for "Hide zero and infinity values" 2016-02-05 11:54:28 +08:00
Chocobo1
1a010cbfc6 Fix total values for "Seeds" & "Peers" 2016-02-05 11:54:28 +08:00
sledgehammer999
176d4780b5 Merge pull request #4746 from buinsky/WebUI_torrents_request
WebAPI: Add "Added on" and "Completion on" fields to query/torrents …
2016-02-04 15:32:14 -06:00
sledgehammer999
4a5f29b0d1 Merge pull request #4482 from glassez/savepath
Manage save path in one place
2016-02-04 15:16:26 -06:00
Vladimir Golovnev (Glassez)
034bd83915 Manage save path in one place 2016-02-04 11:42:30 +03:00
buinsky
b94a1b9fbe WebAPI: Add "Added on" and "Completion on" fields to query/torrents query response 2016-02-04 09:28:51 +03:00
Ben Lau
cd9cae4121 add a remaining column to the torrent content model 2016-02-03 20:28:10 -08:00
Chocobo1
48d2beece5 Fix potential race condition. Closes #4742. 2016-02-04 00:39:10 +08:00
Chocobo1
b0a5c973a5 Simplify common paint actions 2016-02-03 12:09:23 +08:00
Chocobo1
5c4470ec07 Remove unused destructor
move get state text to its own function
2016-02-03 12:07:54 +08:00
Chocobo1
a56b745429 Follow project coding style. Issue #2192. 2016-02-03 12:07:52 +08:00
Chocobo1
325ba48601 Add "Hide zero values" option. Closes #3543. 2016-02-03 12:05:55 +08:00
sledgehammer999
6054e05e70 Merge pull request #4725 from ngosang/webui_css
[Web UI] Minor changes in CSS styles
2016-02-02 16:07:49 -06:00
sledgehammer999
87c32ccb98 Merge pull request #4731 from ngosang/webui_username
Check WebUI username and password length. Closes #4191
2016-02-02 16:06:54 -06:00
sledgehammer999
232af6b802 Merge pull request #4733 from glassez/fix
Fix upgrade corrupted fastresume file
2016-02-01 09:25:11 -06:00
Vladimir Golovnev (Glassez)
057cbed204 Fix upgrade corrupted fastresume file 2016-02-01 09:20:28 +03:00
sledgehammer999
4e4b370b4a Merge pull request #4730 from thalieht/unlock_column
Unlock the first column in peerlist too
2016-01-31 19:01:54 -06:00
Vladimir Golovnev (Glassez)
c57aaf0216 Create MagnetUri object from BC link or HASH string 2016-01-31 21:32:41 +03:00
ngosang
2ee43758d5 Check WebUI username and password length. Closes #4191 2016-01-31 19:18:45 +01:00
ngosang
9507e12ca7 [Web UI] Minor changes in CSS styles 2016-01-31 19:18:10 +01:00
thalieht
a17fc84fd0 Unlock first column in peerlist too
I just copy pasted from trackerlist (tested ofc). No idea if it can be
done differently.
2016-01-31 16:54:16 +02:00
sledgehammer999
f23cd9204c Merge pull request #4623 from glassez/libt11
Add libtorrent v1.1 basic support
2016-01-31 05:57:10 -06:00
Vladimir Golovnev (Glassez)
decfae7b8a Add libtorrent v1.1 basic support 2016-01-31 14:04:25 +03:00
Vladimir Golovnev (Glassez)
c93ada1e7b Prepare for libtorrent v1.1 support 2016-01-31 10:40:55 +03:00
Vladimir Golovnev (Glassez)
31be920ba4 Don't use wide strings in libtorrent 2016-01-31 10:40:55 +03:00
sledgehammer999
53261cc0b2 Merge pull request #4677 from buinsky/WebUI_misc_fixes
WebUI: Misc fixes and improvements
2016-01-30 12:11:46 -06:00
sledgehammer999
c8a562b865 Merge pull request #3816 from ngosang/fix_last_piece
Download more pieces in "Download first and last pieces first" feature
2016-01-30 12:08:32 -06:00
sledgehammer999
38f3c39d1d Merge pull request #4715 from ngosang/update_tpb
[search engine] Update PirateBay plugin.
2016-01-30 12:02:08 -06:00
sledgehammer999
43aede8d63 Merge pull request #4716 from ngosang/max_ratio
[Web UI] Fix max_ratio precision. Closes #4707
2016-01-30 11:59:47 -06:00
ngosang
87dc9a4a18 [Web UI] Fix max_ratio precision. Closes #4707 2016-01-30 18:22:11 +01:00
ngosang
6b6411d06b Download more pieces in "Download first and last pieces first" feature 2016-01-30 03:11:14 +01:00
ngosang
398d11a453 [search engine] Update PirateBay plugin. 2016-01-30 01:08:28 +01:00
Bert Verhelst
f579360086 converted all oxygen icons to svg files + added grunt task to convert to png
Check readme for more information on how to convert the icons to png
src/icons/oxygen/build-icons/readme.md
2016-01-29 21:39:19 +01:00
buinsky
c04f502863 WebUI: Submit the label in the new label dialog on pressing enter key 2016-01-29 18:02:36 +03:00
buinsky
3591a0cedd WebUI: Repair translation 2016-01-29 09:57:27 +03:00
sledgehammer999
193913129f Merge pull request #4360 from Chocobo1/signal_fix
Simplify signal handler
2016-01-28 16:08:49 -06:00
sledgehammer999
44624d0003 Fix loading *.magnet files from watched folders. Closes #4701. 2016-01-28 23:59:02 +02:00
sledgehammer999
2f62a79135 Merge pull request #4122 from Chocobo1/adv_options
Group settings in advanced settings table
2016-01-28 15:10:02 -06:00
sledgehammer999
063eb7e9ab Merge pull request #3941 from jconnop/announceIP
Always update native session's announce_ip setting
2016-01-28 11:44:23 -06:00
sledgehammer999
a3d6371d36 Merge pull request #2644 from birdie-github/patch-2
Let's check if the torrent file can actually be opened before passing it...
2016-01-28 11:40:58 -06:00
Chocobo1
a26d48082d Add header to differentiate settings 2016-01-26 20:30:07 +08:00
Chocobo1
acbc7d9556 Rename setRow() to addRow()
Use template to avoid code duplication
2016-01-26 20:27:02 +08:00
Chocobo1
a8b394752e Set parent object for advancedsettings
Remove borders
Resize column size correctly
2016-01-26 20:18:51 +08:00
Chocobo1
29c94d2fb5 Move code from advancedsettings.h to its own cpp file 2016-01-26 20:13:44 +08:00
Chocobo1
2fd8a0ea22 Add license in advancedsettings.h 2016-01-26 19:48:26 +08:00
sledgehammer999
0d32b9a692 Fix splash screen staying on top of all windows. Closes #1391. 2016-01-25 15:59:20 +02:00
buinsky
418734b0a3 WebUI: Fix JavaScript exception on WebUI load 2016-01-24 14:29:29 +03:00
Bert Verhelst
b752df7557 60 of the svg's in the oxigen folder converted 2016-01-22 22:11:59 +01:00
Chocobo1
4a3d9029d1 Add #include guard 2016-01-22 01:36:11 +08:00
Chocobo1
ef75ae4aee Try to concat most of the string at compile time
The lesser unsafe code in signal handler the better
Add license
2016-01-22 01:36:11 +08:00
Chocobo1
5c8a4b3912 Simplify signal handler
Try to use signal-safe functions as much as possible
Closes #3995
Define sys_signame[] ourselves on linux
2016-01-22 01:36:11 +08:00
Zach Bacon
f975187e48 tests if qmake is in path properly 2016-01-20 18:26:55 -05:00
sledgehammer999
69d52a06d7 Temporarily revert PR #2885 (filename column in peers view).
There's a bug that causes frequent crashes.
Issue #4597.
2016-01-21 00:26:03 +02:00
sledgehammer999
de5381856d Merge pull request #4619 from buinsky/WebUI_fix
WebUI: Fix unnecessary updates of peers table
2016-01-20 13:16:24 -06:00
sledgehammer999
d31ccbde15 Merge pull request #4620 from buinsky/WebUI_add_style
WebUI: Move style of dynamic table header to CSS
2016-01-20 13:16:06 -06:00
Zach Bacon
8f875962b2 fixes qmake pathing and also fixes a type in configure.ac 2016-01-20 12:47:53 -05:00
buinsky
cdb70a8c14 WebUI: Move style of dynamic table header to CSS 2016-01-20 15:16:40 +03:00
buinsky
b2839a6442 WebUI: Fix unnecessary updates of torrent peers table 2016-01-20 12:13:27 +03:00
sledgehammer999
1af8a1533e Bump Copyright year. 2016-01-19 01:46:01 +02:00
sledgehammer999
ab813df992 Bump WebUI API_VERSION and API_VERSION_MIN. 2016-01-19 01:31:39 +02:00
sledgehammer999
3fa15eeb35 Sync translations from Transifex and run lupdate. 2016-01-19 00:49:48 +02:00
sledgehammer999
d3c38da04d Merge pull request #4565 from glassez/fixes
Fix some bugs (reported by Coverity Scan)
2016-01-17 16:18:40 -06:00
sledgehammer999
717759db29 Merge pull request #4566 from buinsky/WebUI_tabs
WebUI: Remember last opened tab
2016-01-17 11:50:23 -06:00
sledgehammer999
c2a26d39af Merge pull request #4577 from glassez/hotfix
[IMPORTANT] Fix loading corrupted .fastresume file
2016-01-17 11:49:58 -06:00
sledgehammer999
b79b5a01cc Merge pull request #4586 from glassez/geoip_nogui
Allow GeoIP in NoGUI builds
2016-01-17 11:48:53 -06:00
Vladimir Golovnev (Glassez)
3df802cef7 Delete unused include 2016-01-17 10:12:55 +03:00
Vladimir Golovnev (Glassez)
dbf430ac2e Allow GeoIP in NoGUI builds 2016-01-17 10:11:55 +03:00
Vladimir Golovnev (Glassez)
3a2bd3c9b1 Fix loading corrupted .fastresume file 2016-01-16 15:27:01 +03:00
Vladimir Golovnev (qlassez)
245f424014 Optimize Session::startupTorrents()
Reduce queue size by starting up initial items (torrents) when they are detected
2016-01-16 14:36:56 +03:00
Vladimir Golovnev (qlassez)
a5780dd66c Switch to using previous fastresume file names 2016-01-16 14:36:56 +03:00
Vladimir Golovnev (qlassez)
4f01660591 Perform fastresume data saving in separate thread
Closes #4315
2016-01-16 14:36:56 +03:00
buinsky
e8789dcd02 WebUI: Remember last opened tab 2016-01-15 19:18:09 +03:00
Vladimir Golovnev (Glassez)
a35cbdc4a9 Fix unchecked dynamic_cast
Replace some unnecessary (and slow) dynamic_cast with static_cast.
2016-01-15 11:32:16 +03:00
Vladimir Golovnev (Glassez)
a203246e85 Fix unitialized pointer field 2016-01-15 09:50:29 +03:00
Vladimir Golovnev (Glassez)
ea8acf3bbd Fix unitialized scalar field bugs 2016-01-15 09:44:10 +03:00
Vladimir Golovnev (Glassez)
9bdd26de43 Simplify Log::Msg and Log::Peer
Also fixes some unitialized scalar field bugs.
2016-01-15 08:50:36 +03:00
sledgehammer999
909fc3fa50 Merge pull request #4553 from glassez/fixes
Fix some bugs (reported by Coverity Scan for the most part)
2016-01-13 17:15:02 -06:00
sledgehammer999
ca45d15424 Merge pull request #4526 from buinsky/WebUI_translation
WebUI: Repair translation
2016-01-13 17:10:07 -06:00
sledgehammer999
5e0252c152 Merge pull request #4341 from pmzqla/delete-label
WebUI: Allow to remove the label assigned to a torrent
2016-01-13 17:09:00 -06:00
Vladimir Golovnev (Glassez)
c6ca877b72 Fix unitialized scalar fields 2016-01-13 20:25:06 +03:00
Vladimir Golovnev (Glassez)
4965704b10 Fix NetworkCookieJar::deleteCookie() behavior to match Qt5 one 2016-01-13 20:24:54 +03:00
Vladimir Golovnev (Glassez)
cf25ed3d80 Fix reconfigure additional trackers
Replace wrong QList::empty() call with QList::clear()
2016-01-13 19:12:31 +03:00
Gabriele
9e91cd70ee WebUI: Allow to remove the label assigned to a torrent
Empty strings are not valid label names, but they are used to remove
torrent labels, so allow them.
2016-01-13 14:57:49 +01:00
sledgehammer999
049e622e3c Merge pull request #4547 from Chocobo1/doc_link_fix
Update CONTRIBUTING.md
2016-01-12 12:37:41 -06:00
Chocobo1
26fceae7e5 Update uncrustify script link. 2016-01-12 13:05:09 +08:00
sledgehammer999
a19e2e48a1 Merge pull request #4436 from GuidC0DE/magnet_handler_osx
Set qBittorrent as default torrent app in Mac OS
2016-01-11 12:28:38 -06:00
sledgehammer999
21f587cc45 Sync translations from Transifex and run lupdate. 2016-01-11 19:54:51 +02:00
sledgehammer999
3a99e3b755 Various updates on the Windows configuration file. 2016-01-11 19:44:44 +02:00
sledgehammer999
1fea2b3d8a Merge pull request #4286 from filipporig8/runparams
Update webui run program parameters
2016-01-11 10:14:56 -06:00
sledgehammer999
a17ca5382d Merge pull request #4538 from buinsky/WebUI_misc_fixes
WebUI: Miscellaneous fixes
2016-01-11 10:12:50 -06:00
sledgehammer999
76c075395a Merge pull request #4542 from vlakoff/translation
Work on French translation for installer
2016-01-11 10:12:12 -06:00
vlakoff
bb9516c5cb Complete French translation for installer 2016-01-11 15:57:19 +01:00
vlakoff
0779b29022 Fixes in French translation for installer 2016-01-11 15:27:01 +01:00
sledgehammer999
2bcefe364f Merge pull request #4522 from buinsky/icons
Edit speed limits and upload ratio icons
2016-01-10 07:29:47 -06:00
buinsky
00e6e00e71 Edit speed limits and upload ratio icons 2016-01-10 16:24:34 +03:00
sledgehammer999
ca4bbdd02b Merge pull request #4528 from Chocobo1/pri_rename
Rename column header
2016-01-10 06:57:42 -06:00
sledgehammer999
b863e77b63 Fix newlines in wiki rendering. 2016-01-10 14:56:53 +02:00
sledgehammer999
5e6c38a524 Add info and files for coding style. Issue #2192. 2016-01-10 14:50:05 +02:00
sledgehammer999
c75d6fd2b5 Merge pull request #4505 from starius/windows-header-lowercase
convert includes like <Windows.h> to lowercase
2016-01-10 06:26:50 -06:00
sledgehammer999
6d4a828698 Merge pull request #4525 from ngosang/tpb
[search engine] Update PirateBay plugin. Closes #4470
2016-01-10 06:24:17 -06:00
sledgehammer999
9b4a0d3dee Merge pull request #4521 from buinsky/WebUI
WebUI: Move some styles into css
2016-01-10 06:19:29 -06:00
sledgehammer999
1b44eaf6fe Merge pull request #4518 from schnurlos/patch-2
Update german.nsi
2016-01-10 06:19:10 -06:00
buinsky
165ab473df WebUI: Fix torrent table context menu
Don't show "Limit download speed" menu item for downloaded torrents.
2016-01-10 12:11:54 +03:00
buinsky
a5e6cd256c WebUI: Fix deleting torrents
Fix possible showing "qBittorrent client is not reachable" message on
deleting torrents.
2016-01-10 12:03:46 +03:00
Chocobo1
6ff1722dbf Replace names with camelCase style 2016-01-10 14:57:56 +08:00
Chocobo1
829012ae3c Use C++11 initializer list 2016-01-10 14:57:56 +08:00
Chocobo1
e330a91921 Follow project coding style. Issue #2192. 2016-01-09 17:19:35 +08:00
buinsky
f961fd6a7c WebUI: Repair translation 2016-01-09 12:04:27 +03:00
Chocobo1
9b031d2fae Rename column header 2016-01-08 22:18:41 +08:00
schnurlos
c5c540469f Update german.nsi
Translated the "A previous installation was detected ..." text.
2016-01-07 18:05:09 +01:00
buinsky
486b65487f Move some styles into css 2016-01-07 10:07:50 +03:00
ngosang
1e8299f842 [search engine] Update PirateBay URL. Closes #4470 2016-01-07 01:45:06 +01:00
ngosang
b8c4a86348 [search engine] Fix PirateBay plugin implementation for Python 3 2016-01-07 01:41:16 +01:00
sledgehammer999
05b557c27f Merge pull request #4515 from ngosang/es-translation
Update installer translations in Spanish language
2016-01-06 17:49:09 -06:00
sledgehammer999
abcdd105e3 Don't require GUI libs for qt4 nox build. Closes #4404. 2016-01-07 01:41:40 +02:00
ngosang
6202156f97 Update installer translations in Spanish language 2016-01-07 00:34:37 +01:00
Boris Nagaev
4706733846 convert includes like <Windows.h> to lowercase
There is header file windows.h, not Windows.h.
MinGW on Linux build machine is filename case-sensitive.
2016-01-05 23:29:26 +03:00
sledgehammer999
e07562beae Merge pull request #4497 from dzmat/patch-1
Update russian.nsi
2016-01-05 10:38:07 -06:00
sledgehammer999
6ccf2f9232 Merge pull request #4020 from glassez/rss
RSS code redesign (Issue #2433).
2016-01-05 10:29:13 -06:00
sledgehammer999
52d08f7112 Merge pull request #4413 from glassez/dlmgr
Improve Download Manager. Closes #4305
2016-01-05 10:10:08 -06:00
dzmat
59c6a0f736 Update russian.nsi
Translated new string/
2016-01-04 17:32:01 +06:00
Vladimir Golovnev (Glassez)
6662081044 Improve RSS parsing logic. 2016-01-04 06:59:07 +03:00
Vladimir Golovnev (Glassez)
28ed981082 Redesign RSS base classes. 2016-01-04 06:37:54 +03:00
Vladimir Golovnev (Glassez)
6f7ae728eb Move base RSS names to Rss namespace. 2016-01-04 06:19:02 +03:00
Vladimir Golovnev (Glassez)
67758cb092 Fix coding style (Issue #2192). 2016-01-04 06:16:20 +03:00
Vladimir Golovnev (qlassez)
881108057d Use DownloadManager by DNSUpdater 2016-01-04 05:51:50 +03:00
Vladimir Golovnev (qlassez)
e378a65508 Use DownloadManager by ProgramUpdater
Closes #2023
2016-01-04 05:49:02 +03:00
Vladimir Golovnev (qlassez)
12c151eb69 Save RSS cookies to common cookie storage
Closes #4305
2016-01-04 05:45:30 +03:00
Naikel Aparicio
fa34f0efcc Implemented WebUI interface for the new Watched Folders feature 2016-01-03 22:08:55 +02:00
sledgehammer999
06be9edfe1 Remove watch folders permanently only if the user accepts the Preferences dialog. 2016-01-03 22:08:55 +02:00
sledgehammer999
9c88959651 Make it scroll horizontally when necessary. 2016-01-03 22:08:55 +02:00
sledgehammer999
ecc19ff23e Fix translated string. 2016-01-03 22:08:55 +02:00
sledgehammer999
429a1ba78a Method to update the watch path parameters. 2016-01-03 22:08:55 +02:00
sledgehammer999
990e33a4b1 Don't add the watch folder before the user closes the Preferences window. 2016-01-03 22:08:55 +02:00
sledgehammer999
56ca80eb78 Support loading multiple magnets/hashes/urls per .magnet file in the watched folder(one per line). Closes #217. 2016-01-03 22:08:55 +02:00
Vladimir Golovnev (qlassez)
ed7fb20758 Fix setting custom download location for watched folder 2016-01-03 22:08:55 +02:00
sledgehammer999
bc92f156c1 Improve the "Watch folders" UI. Closes #4300. 2016-01-03 22:08:55 +02:00
sledgehammer999
e9547f7a1c Indicate to the user that he's going to download the new version.
Indicate from the installer that the old version was detected and no settings will be deleted.
Closes #4320.
2016-01-03 17:54:04 +02:00
sledgehammer999
c700b8c5c5 Move the 'qBittorrent-resume' file even when no magnets were recovered. Also make sure to rename it with a unique name. Closes #4334. 2016-01-03 16:26:36 +02:00
sledgehammer999
17f1a7d22a Merge pull request #2885 from evsh/peers-show-files
Add column with list of currently downloading files
2016-01-02 11:48:10 -06:00
sledgehammer999
15652025d3 Update native names for Chinese locales. Closes #4381. 2016-01-02 18:55:36 +02:00
sledgehammer999
ef1261de45 Merge pull request #4441 from naikel/upload_fix
Multiple Torrents Uploads Fix.  Closes #4428
2015-12-31 16:27:03 -06:00
Dmitry Victorov
a564b96ccf Set qBittorrent as default torrent app in Mac OS 2015-12-29 13:54:50 +03:00
sledgehammer999
76c16e0994 Merge pull request #4283 from Chocobo1/travis
[Travis CI] Don't build with Qt4 on OSX
2015-12-28 17:40:16 -06:00
sledgehammer999
719e71264b Merge pull request #4282 from buinsky/master
WebUI: Show filtered torrents number
2015-12-28 17:23:49 -06:00
sledgehammer999
7a0f04e667 Merge pull request #4435 from Chocobo1/crash_fix
Crash fix for #4280
2015-12-27 07:57:02 -06:00
sledgehammer999
bd85ce02da Merge pull request #4438 from glassez/tmpfolder
Fix moving torrents to Temp after app restart. Closes #4434.
2015-12-27 07:33:03 -06:00
buinsky
2691bb1540 Fix paused, active and inactive filters 2015-12-27 09:22:45 +03:00
Naikel Aparicio
c9293dd2d1 Fixed bug when uploading several files and only the last one was considered. 2015-12-26 20:55:13 -04:30
filipporig8
d3b47f45ab Update webui run program parameters 2015-12-24 14:43:28 +01:00
Vladimir Golovnev (qlassez)
30f4036c97 Fix moving torrents to Temp after app restart
Closes #4434
2015-12-23 14:13:49 +03:00
Vladimir Golovnev (Glassez)
405b06319d Move base RSS code to Core. 2015-12-22 14:07:03 +03:00
Vladimir Golovnev (qlassez)
0bffa066db Make DownloadManager to save/load cookies 2015-12-22 14:02:14 +03:00
Chocobo1
edbfff62e8 Fix typo 2015-12-22 12:43:38 +08:00
Chocobo1
deb9a6b37f Simplify statement 2015-12-22 12:40:51 +08:00
Chocobo1
07de39ff17 Add check for null. Fix provided by glassez.
Closes #4280.
2015-12-22 12:39:02 +08:00
sledgehammer999
db459b2400 Merge pull request #3832 from glassez/search
Search Engine code redesign (Issue #2433).
2015-12-21 11:13:38 -06:00
Vladimir Golovnev (Glassez)
ac365c5efb Fix coding style (Issue #2192). 2015-12-20 21:52:26 +03:00
Vladimir Golovnev (Glassez)
54979e6b53 Move basic search-related code into Core.
Also use qBittorrent torrent file download routines instead of
nova2dl.py script.
2015-12-20 19:20:59 +03:00
Eugene Shalygin
768b67d275 Add column with list of currently downloading files
Add a new column to peers list that shows list of files which are
downloaded right now from a peer. The column is empty if we do not
download anything from the given peer.
2015-12-20 01:45:35 +01:00
Eugene Shalygin
0a92cb74a5 functions for retrieving list of currently downloading files 2015-12-20 01:45:35 +01:00
Eugene Shalygin
efed388402 Revert "Remove unused parameter."
This reverts commit 87347cf0e5.
2015-12-20 01:45:35 +01:00
sledgehammer999
e4679a6eaf Merge pull request #4299 from Fale/patch-2
Fix lrelease version due to the default Qt5 build
2015-12-18 09:36:07 -06:00
Fabio Alessandro Locati
981bbae75f Fix lrelease version due to the default Qt5 build
As title
2015-12-18 12:53:31 +01:00
sledgehammer999
c3b4ebdc1b Merge pull request #3960 from Chocobo1/iso3166
Update country codes
2015-12-17 16:51:51 -06:00
sledgehammer999
450b1e75c9 Fix linux build. 2015-12-13 17:29:55 +02:00
sledgehammer999
82e02f7118 Don't apply some settings again if they weren't changed. Closes #4278. 2015-12-13 16:58:32 +02:00
sledgehammer999
2d25edd4d6 Don't recheck twice after 'Force Recheck' with 'Recheck torrents on completion' enabled. Closes #4274. 2015-12-13 14:33:16 +02:00
Chocobo1
fa92a10f15 Turn off warning on OSX builds: unused-local-typedefs
Reorder option list, sort by lt_branch then qt then gui
2015-12-10 21:11:20 +08:00
sledgehammer999
ebe6d1b603 Fix resolution of peer host names. Closes #4307. 2015-12-09 17:52:34 +02:00
d3fault
07599b5923 Add 'never show again' checkbox/pref to auto-exit confirm dialog 2015-12-09 01:01:48 -07:00
Jesse Connop
41dbb82cc2 Always update native session's announce_ip setting 2015-12-08 21:55:34 +13:00
sledgehammer999
39ad4d65e8 Sync translations from Transifex and run lupdate. 2015-12-08 00:15:50 +02:00
sledgehammer999
91a99c6903 Fix possible deadlock during application exit. 2015-12-07 23:59:45 +02:00
sledgehammer999
3e0f8a1e4e Bump WebUI API_VERSION. 2015-12-07 23:59:39 +02:00
sledgehammer999
970e21fc33 Change update URL to FossHub. Closes #4188. 2015-12-07 23:59:34 +02:00
sledgehammer999
9e20553dab Follow project coding style. Issue #2192. 2015-12-07 23:59:28 +02:00
sledgehammer999
87347cf0e5 Remove unused parameter. 2015-12-07 23:59:23 +02:00
buinsky
b10f04abbd WebUI: Show filtered torrents number 2015-12-07 23:27:45 +03:00
Chocobo1
d203f39f0a Update ISO 3166 country codes. Closes #3942. 2015-12-07 09:44:55 +08:00
sledgehammer999
75d4e2a2f2 Merge pull request #4109 from buinsky/master
WebUI: Implement peers tab
2015-12-06 13:34:25 -06:00
buinsky
05a2e5a92e Implement torrent peers table in WebUI 2015-12-06 22:21:28 +03:00
buinsky
00c765be1b Implement sync/torrent_peers request 2015-12-06 22:21:24 +03:00
buinsky
aea6c38b33 Follow project coding style. Issue #2192. 2015-12-06 22:07:47 +03:00
buinsky
1e3a57ad92 Rename 'context_menu' variable to 'torrents_table_context_menu' 2015-12-06 22:07:44 +03:00
buinsky
805f0d4c90 Rename 'myTable' variable to 'torrentsTable' 2015-12-06 22:07:42 +03:00
buinsky
2275060022 Split the DynamicTable class into 2 classes 2015-12-06 22:07:39 +03:00
buinsky
c9b74c2742 Add seeds tab to WebUI 2015-12-06 22:07:37 +03:00
Vladimir Golovnev (Glassez)
8754fd5646 Move Search-related files into Gui. 2015-12-06 21:25:40 +03:00
Vladimir Golovnev (Glassez)
3797cc767f Fix search-related file/class names. 2015-12-06 21:25:40 +03:00
sledgehammer999
2aa8c07d0e Merge pull request #3860 from glassez/base
Rename Core to Base (Closes #3733).
2015-12-06 11:03:51 -06:00
Vladimir Golovnev (Glassez)
9db93e5d8f Rename Core to Base (Closes #3733). 2015-12-06 14:27:00 +03:00
sledgehammer999
29b0200f62 Merge pull request #4269 from glassez/rss_magnet
Fix RSS isn't automarking articles as read. Closes #4260.
2015-12-06 05:16:21 -06:00
Vladimir Golovnev (Glassez)
696ce427a8 Fix RSS isn't automarking articles as read
Closes: #4260, #4233, #4221, #4133
2015-12-06 14:04:31 +03:00
sledgehammer999
17ac4b90be Use simpler DEFINE for detecting Qt5 so moc will work too. 2015-12-05 22:20:49 +02:00
sledgehammer999
623ab03492 Merge pull request #4203 from glassez/hotfixes
Hotfixes
2015-12-05 14:14:13 -06:00
sledgehammer999
b3e4d8487b Add clarifying comment. 2015-12-05 21:22:01 +02:00
sledgehammer999
bae5c6a1db Partially revert b4c9c7cde. 2015-12-05 21:18:52 +02:00
sledgehammer999
658a73e610 Merge pull request #4208 from glassez/upgrade
Improve upgrade to v3.3. Fixes #4195.
2015-12-05 12:14:37 -06:00
Vladimir Golovnev (Glassez)
bdac97147f Improve upgrade to v3.3. Fixes #4195. 2015-12-05 20:38:17 +03:00
sledgehammer999
78462dfa6c Merge pull request #4225 from glassez/export
Improve torrent export feature. Closes #4205.
2015-12-05 11:25:25 -06:00
sledgehammer999
8362cb5e4f Merge pull request #4262 from glassez/scandirs
Fix scan dirs settings saving. Closes #4254, #4239, #4187.
2015-12-05 11:17:41 -06:00
sledgehammer999
ae3c473490 Merge pull request #4250 from Chocobo1/contributing
Add CONTRIBUTING.md
2015-12-05 10:13:36 -06:00
Vladimir Golovnev (Glassez)
8014d74210 Fix scan dirs settings saving. Closes #4254, #4239, #4187. 2015-12-05 17:48:57 +03:00
Chocobo1
71bdd353d3 Add CONTRIBUTING.md 2015-12-05 11:24:01 +08:00
Bert Verhelst
ad7bce76d8 Added stylized icons for the main actions bar
This will look like this:
https://goo.gl/tV7duh
2015-12-04 21:45:12 +01:00
Vladimir Golovnev (Glassez)
7cc5a3e050 Improve torrent export feature. Closes #4205. 2015-12-03 20:18:10 +03:00
Vladimir Golovnev (Glassez)
6bf2c5a946 Remove unused LineEdit slot. Fix compiler warning. 2015-11-30 19:58:19 +03:00
Vladimir Golovnev (Glassez)
9853187051 Fix wrong encoding for listen failed error message. 2015-11-30 19:55:13 +03:00
sledgehammer999
f4ef0633c9 Merge pull request #4170 from vlakoff/filtering-v3
Support wildcards for filtering torrent list and torrent content
2015-11-29 18:13:58 -06:00
sledgehammer999
91c3de4620 Merge pull request #4145 from Chocobo1/misc_fix
Misc fixes
2015-11-29 18:13:39 -06:00
sledgehammer999
6545ba9a35 Merge pull request #4074 from Chocobo1/lineEdit
Use QLineEdit built-in ClearButton
2015-11-29 18:13:19 -06:00
sledgehammer999
797861a9c0 Merge pull request #4059 from Chocobo1/prop_cleanup
Properties widget cleanup
2015-11-29 18:13:05 -06:00
sledgehammer999
8df192e8dd Merge pull request #4051 from takiz/qblabels
"Set as default label" option
2015-11-29 18:12:37 -06:00
sledgehammer999
6f2eccd62f Merge pull request #4015 from naikel/cookies
[WebUI] Add save path, cookies and labels when adding torrents
2015-11-29 18:12:10 -06:00
sledgehammer999
a7777a48e3 Bump to v3.4.0alpha 2015-11-30 00:16:49 +02:00
sledgehammer999
b4c9c7cde4 Delete from the repo the qt4 translations used in the Windows installer. 2015-11-30 00:12:30 +02:00
sledgehammer999
8ad82fc748 Update Changelog. 2015-11-29 21:51:14 +02:00
sledgehammer999
6e5aab7e98 Sync translations from Transifex and run lupdate. 2015-11-29 21:43:11 +02:00
sledgehammer999
fd39efd846 Fix cases where the fastresume was wrongly overwritten when in 'Missing Files' status. Closes #3602. 2015-11-29 18:40:24 +02:00
sledgehammer999
86dba7bd21 Don't rebind listen port on 'network configuration changed' signal when we listen on any address. Closes #4139. 2015-11-29 14:30:49 +02:00
sledgehammer999
ac3b01e02e Merge pull request #4177 from ngosang/webui_color
[WebUI] Change colors in selected filters and torrents.
2015-11-29 06:25:47 -06:00
sledgehammer999
c267036427 Merge pull request #4178 from ngosang/torrentzup
[searchengine] Update Torrentz trackers
2015-11-29 06:16:00 -06:00
sledgehammer999
0a0c8f307b Merge pull request #4175 from glassez/seq_dl
Prevent return cached "sequential download" state. Closes #4167.
2015-11-29 06:15:22 -06:00
Chocobo1
b2bf1b3425 Reduce mainwindow border width 2015-11-29 00:21:08 +08:00
vlakoff
692cac1dc5 Support wildcards for filtering torrent list and torrent content 2015-11-26 19:02:43 +01:00
Vladimir Golovnev (Glassez)
e804e6e91a Prevent return cached "sequential download" state. Closes #4167. 2015-11-26 15:09:11 +03:00
Vladimir Golovnev (Glassez)
67e90d8d2a Make setSequentialDownload/setFirstLastPiecePriority independent. 2015-11-26 15:08:01 +03:00
sledgehammer999
88abe2baff Fix shutdown dialog. Closes #4171. 2015-11-25 18:30:43 +02:00
sledgehammer999
23748547a2 Merge pull request #4150 from glassez/coding_style
Improve CODING_GUIDELINES.md.
2015-11-23 10:19:50 -06:00
sledgehammer999
0b68c2356c Merge pull request #4111 from dpeukert/master
WebUI: Change selected color
2015-11-23 10:18:03 -06:00
sledgehammer999
0aaf4d1050 Update Changelog. 2015-11-22 22:08:33 +02:00
sledgehammer999
ce535c9492 Bump version status. 2015-11-22 22:08:21 +02:00
sledgehammer999
3e6d76245c Bump WebUI API_VERSION. 2015-11-22 22:08:16 +02:00
sledgehammer999
18f3517efa New translation: Esperanto
Also re-run lupdate.
2015-11-22 22:08:10 +02:00
sledgehammer999
09e85900d7 Sync translations from Transifex and run lupdate. 2015-11-22 22:08:04 +02:00
sledgehammer999
6e09028682 Switch to Qt5 by default. 2015-11-22 22:07:59 +02:00
Vladimir Golovnev (Glassez)
59427ed6af Improve CODING_GUIDELINES.md. 2015-11-21 11:25:14 +03:00
Chocobo1
c19e660306 Change text description for half-open connection 2015-11-20 12:08:40 +08:00
Chocobo1
067a8bf108 Fix -1 is displayed instead of C_INFINITY symbol 2015-11-20 12:05:06 +08:00
sledgehammer999
340288f308 Merge pull request #4114 from glassez/fix-4105
Fix default save path for magnet. Closes #4105.
2015-11-18 11:36:12 -06:00
sledgehammer999
b76428420e Merge pull request #4136 from glassez/remove_labels
Fix 'Remove unused labels'. Closes #4066.
2015-11-18 11:07:03 -06:00
sledgehammer999
22d9427e20 Fix reordering of first column with Qt5. Closes #2835. 2015-11-18 18:14:24 +02:00
sledgehammer999
2e3cce6755 Merge pull request #4135 from Chocobo1/speedplot_color
Fix Speed graph legend is illegible on dark background. Closes #4134.
2015-11-18 04:14:32 -06:00
Vladimir Golovnev (Glassez)
3f9b568808 Fix 'Remove unused labels'. Closes #4066. 2015-11-18 12:52:06 +03:00
Chocobo1
a74bac20c4 Fix Speed graph legend is illegible on dark background. Closes #4134. 2015-11-18 14:41:29 +08:00
sledgehammer999
ee6b968f2f Don't save/load the session state. We configure it anyway. 2015-11-17 23:03:56 +02:00
sledgehammer999
00fae05507 Don't ask the user questions in nox build when in non-interactive mode. Closes #3875. 2015-11-17 23:00:33 +02:00
sledgehammer999
9718b7d9ba New view for errored torrents. 2015-11-17 19:29:05 +02:00
sledgehammer999
bf0319f7b2 Fix status string for errored torrents. 2015-11-17 19:18:50 +02:00
sledgehammer999
5b232528cc Fixup previous commit. 2015-11-16 02:58:41 +02:00
dsimakov
1f17a7836d 1. In option window add column 'download path' for watched folders and enlarge heigth.
2. Change logic checkbox in column 'download here': if it checked,
   then torrent file will download to watchdir, if state is unchecked,
   will be use download path from next column.
2015-11-16 02:45:23 +02:00
Vladimir Golovnev (Glassez)
e183c12bed Fix default save path for magnet. Closes #4105. 2015-11-14 09:38:01 +03:00
Daniel Peukert
3901f1555d WebUI: Change selected color
The selected color was little bit too close to the progress bar color.
2015-11-14 00:23:33 +01:00
sledgehammer999
84f6a82d98 Merge pull request #4062 from glassez/speedup
Some TransferListWidget speedup.
2015-11-13 11:14:43 -06:00
Naikel Aparicio
753c9556fd Cookies support on WebUI when downloading torrent from a URL. Modified download and upload windows to allow autocompletion of browsers.
Fixed the spinner in the WebUI upload page. Modified height of the WebUI download page.

Fixed all the JavaScript functions for download and upload pages.
2015-11-10 10:02:20 -04:30
sledgehammer999
100cff1738 Merge pull request #3856 from ngosang/fix_search
[searchengine] Fix invalid plugin message and detect new plugin URL from clipboard
2015-11-10 03:15:59 -06:00
sledgehammer999
d12ab5c048 Sync translations from Transifex and run lupdate. 2015-11-10 01:13:25 +02:00
sledgehammer999
055ad080a1 Pass the alertMask to the session constructor to not lose initial alerts. 2015-11-10 00:23:59 +02:00
sledgehammer999
c771703c34 Merge pull request #3932 from Chocobo1/refactor
Refactor
2015-11-09 15:29:19 -06:00
sledgehammer999
cf1c934083 Merge pull request #3961 from Chocobo1/comment_click
Make URL in "Add Torrent File..." clickable
2015-11-09 15:27:56 -06:00
sledgehammer999
c40bab0555 Merge pull request #4094 from ngosang/webui_ipv6
[WebUI] Patch mootools-more to fix IPv6 problem. Closes #3621
2015-11-09 11:23:25 -06:00
Chocobo1
ccec11e568 Follow project coding style. Issue #2192. 2015-11-09 20:31:50 +08:00
Chocobo1
0eaf991d6f Use QLineEdit built-in ClearButton (Qt5 only) 2015-11-09 20:30:50 +08:00
Chocobo1
fadb208299 Fix compile warning:
warning: enumeration value 'Unknown' not handled in switch [-Wswitch]
2015-11-09 16:14:29 +08:00
Chocobo1
a6d2f5186f Avoid falling through the switch case 2015-11-09 16:10:04 +08:00
ngosang
80f7e7868d [searchengine] Update Torrentz trackers 2015-11-09 04:10:57 +01:00
ngosang
40bdeb6c2d [WebUI] Change colors in selected filters and torrents. 2015-11-09 03:38:37 +01:00
ngosang
e0be09dd81 [WebUI] Patch mootools-more to fix IPv6 problem. Closes #3621 2015-11-09 01:57:40 +01:00
sledgehammer999
45dbfe80a1 Merge pull request #4035 from Chocobo1/reduce_cache
Reduce max value of "Disk cache size"
2015-11-08 04:26:22 -06:00
Chocobo1
db45c11d84 Reduce max value of "Disk cache size" to 1536MB. Closes to #4028. 2015-11-08 13:58:28 +08:00
sledgehammer999
80a9896a4e Merge pull request #4080 from ngosang/privacy
Change personal email
2015-11-07 18:09:50 -06:00
ngosang
9fefdc0fbb Change personal email 2015-11-07 23:40:11 +01:00
Chocobo1
af90eadf71 Cleanup "Content" page layout
Limit lineEdit maximum size
2015-11-07 15:51:29 +08:00
sledgehammer999
a16d0f8d28 Don't connect to "any interface" when the configured network interface is missing. Closes #3943, #2741, #1159, #844 and #143. 2015-11-07 02:06:07 +02:00
sledgehammer999
472fff06dc Merge pull request #3984 from glassez/root_path
Fix TorrentHandle path methods. Closes #3847.
2015-11-06 16:03:48 -06:00
takiz
d336c7c02c "Set as default label" option 2015-11-06 23:43:10 +05:00
Vladimir Golovnev (Glassez)
91ffbfcf68 Some TransferListWidget speedup.
Handle data changed event for all torrents at once.
2015-11-06 08:38:09 +03:00
Chocobo1
7005af3047 Cleanup "Peers" page layout
Cleanup "HTTP Sources" page layout
Cleanup "Speed" page layout
2015-11-05 20:06:38 +08:00
Chocobo1
ff67d29573 Cleanup "Trackers" page layout 2015-11-05 18:37:29 +08:00
sledgehammer999
5cf976bbb2 Better fix for e6b7a429ea. 2015-11-04 23:37:35 +02:00
sledgehammer999
e6b7a429ea Fix reporting of tracker status. Closes #3101. 2015-11-04 19:13:09 +02:00
sledgehammer999
12072e2b69 Always apply filter for manually banned IPs. Related #3988. 2015-11-04 17:15:37 +02:00
sledgehammer999
4cecb585bc Merge pull request #3444 from ngosang/webui_labels
[Web UI] Labels implementation
2015-11-03 16:31:05 -06:00
sledgehammer999
66ce5c2557 Merge pull request #3332 from ngosang/addtrackers2
Automatically add trackers to new downloads. Closes #262
2015-11-02 10:51:59 -06:00
sledgehammer999
f7f23d2ae9 Merge pull request #3809 from ngosang/webui_optim
[Web UI] Code cleanup and little change in contextual menu
2015-11-01 17:38:55 -06:00
sledgehammer999
e204562f4d Merge pull request #4037 from glassez/label
Fix 'Append label to save path'. Closes #4031.
2015-11-01 11:12:16 -06:00
Vladimir Golovnev (Glassez)
c38987fc03 Provide torrent paths to external program. 2015-11-01 17:09:15 +03:00
Vladimir Golovnev (Glassez)
501ab07024 Fix TorrentHandle path methods. Closes #3847. 2015-11-01 17:09:09 +03:00
sledgehammer999
d0ebe08bf5 Merge pull request #3604 from Chocobo1/deletion
Don't remove torrent contents parent folder, even it is empty.
2015-11-01 07:35:03 -06:00
Chocobo1
4fcd107ff3 Don't remove torrent contents parent folder, even it is empty. Closes #2244. 2015-11-01 21:01:55 +08:00
Vladimir Golovnev (Glassez)
25feee2366 Fix 'Append label to save path'. Closes #4031. 2015-11-01 11:26:57 +03:00
sledgehammer999
a39ce57094 Merge pull request #4022 from glassez/vector
Fix PieceAvailabilityBar::intToFloatVector(). Closes #3937.
2015-10-29 15:59:29 -05:00
Vladimir Golovnev (Glassez)
f7150edd44 Fix DownloadedPiecesBar::bitfieldToFloatVector(). 2015-10-29 14:49:01 +03:00
Vladimir Golovnev (Glassez)
be78188691 Fix PieceAvailabilityBar::intToFloatVector(). Closes #3937. 2015-10-29 14:46:43 +03:00
sledgehammer999
c75725e2d8 Fix printing of avg download speed in General button. Closes #4013. 2015-10-28 01:47:01 +02:00
sledgehammer999
9b6122c328 Fix corner case of reseting 'm_hasSeedStatus' in 3a29d70dd5. 2015-10-28 01:46:53 +02:00
sledgehammer999
99ba8a6a53 Merge pull request #3990 from naikel/payload_fix
Changed payload functions from int to qlonglong in TorrentHandle class
2015-10-27 03:48:22 -05:00
sledgehammer999
3a29d70dd5 Correctly set the 'm_hasSeedStatus' parameter on different situations. 2015-10-26 00:53:04 +02:00
Naikel Aparicio
2a2c947602 Changed payload functions from int to qlonglong in TorrentHandle class 2015-10-25 14:29:12 -04:30
sledgehammer999
cd3dc3d645 Merge pull request #3343 from Chocobo1/tx_list
Minor style change in transfer list & filters
2015-10-25 10:09:40 -05:00
sledgehammer999
f74c68e121 React again to finished torrents when previously unselected files have finished downloading. 2015-10-25 17:03:22 +02:00
sledgehammer999
bfd30dcabc Don't put finished torrents in seed_mode.
Seed mode has special function in libtorrent. It is used to skip hash checking when adding a torrent and consider it complete.
2015-10-25 17:03:14 +02:00
Chocobo1
5d3ba06e9d Use thin border for transfer list 2015-10-25 14:06:06 +08:00
Chocobo1
e275c3ba52 Add helper function: Get DPI scaled icon size (device-dependent) 2015-10-25 14:06:06 +08:00
Chocobo1
3335a111e1 Use a larger spacing between filters
Simplify code
2015-10-25 14:06:06 +08:00
sledgehammer999
f7c8a499d5 Unload the GeoIP db when disabled. 2015-10-25 02:54:27 +03:00
sledgehammer999
ad7ad8f596 Faster GeoIP lookups.
QCache results in speed decrease.
See https://github.com/qbittorrent/qBittorrent/pull/3488#issuecomment-124731983
2015-10-25 02:54:19 +03:00
sledgehammer999
ef5b3b90c3 Don't save the GeoIP nodes beforehand.
It saves a lot of memory and isn't much faster.
2015-10-25 02:54:11 +03:00
sledgehammer999
787b824d90 Merge pull request #3323 from Chocobo1/prop_bar
Availability bar, progress bar, button group improvements
2015-10-24 06:45:12 -05:00
Jerome Leclanche
0070dcf550 LICENSE: Fix mixed indenting 2015-10-22 20:17:54 +03:00
Jerome Leclanche
213cefb001 LICENSE: Remove copy/paste error 2015-10-22 20:16:48 +03:00
Chocobo1
7e6dfa759c Replace horizontal line with border 2015-10-22 17:34:22 +08:00
Chocobo1
c6a6f85a5e Use theme color for background in PropertiesWidget 2015-10-22 17:34:22 +08:00
Chocobo1
421b45c553 Add tooltips/legend for availability bar & progress bar 2015-10-22 17:34:22 +08:00
sledgehammer999
0507876080 Merge pull request #3967 from glassez/webui
Cast MaxRatioAction to int when store as JSON. Closes #3939.
2015-10-19 15:15:45 -05:00
Vladimir Golovnev (Glassez)
52db762677 Cast MaxRatioAction to int when store as JSON. Closes #3939. 2015-10-19 21:14:41 +03:00
sledgehammer999
94037cd017 Merge pull request #3949 from netswap/patch-1
[german.nsi] Little fixes
2015-10-19 11:21:56 -05:00
Chocobo1
a16de62103 Make URL in "Add Torrent File..." clickable. Closes #3928. 2015-10-19 11:57:03 +08:00
sledgehammer999
df8def02f5 Merge pull request #3933 from glassez/streamops
Register stream operators for enum classes. Closes #3921.
2015-10-18 15:09:59 -05:00
sledgehammer999
d60f2fc7df Fix another potential crash when memory allocation failed.
See commit e95fce3084.
Related issues #3877 and #2673.
2015-10-17 18:21:33 +03:00
sledgehammer999
cc9ffc4767 Use the actual function names for debug logging. 2015-10-17 17:41:53 +03:00
sledgehammer999
f6a620cf6e Merge pull request #3951 from glassez/const
Fix possible compilation error. Closes #3947.
2015-10-16 04:55:23 -05:00
Vladimir Golovnev
a7cf8cea3f Fix possible compilation error. Closes #3947. 2015-10-16 12:02:47 +03:00
netswap
4cec06e67c [german.nsi] Little fixes
Line 6: "auf dem" instead of "am" (oriented at https://support.microsoft.com/de-de/kb/140443; more commonly used)
Line 41: "aus" instead of "in" (makes more sense imo)

Anyone else fluent in German can discuss for sure. Only because I changed something it does not mean it is *completely* right, eh? ;-)
2015-10-15 22:38:36 +02:00
sledgehammer999
41c953de46 Merge pull request #3938 from glassez/path
Use default save path if save path is not set.
2015-10-14 18:43:43 -05:00
Vladimir Golovnev (Glassez)
986bb1a8ac Use default save path if save path is not set. 2015-10-13 21:58:25 +03:00
Vladimir Golovnev
a7ff38d389 Register stream operators for enum classes. Closes #3921. 2015-10-13 10:39:17 +03:00
Chocobo1
f530bb7537 Fix availability label & progress label clipped on high DPI displays, closes #3237. 2015-10-12 15:34:22 +08:00
Chocobo1
b5adbaef78 Fix availability bar & progress bar height being too small on high DPI displays 2015-10-12 15:12:42 +08:00
sledgehammer999
4a271d358f Merge pull request #3918 from glassez/winfix
Fix compilation on Windows.
2015-10-11 16:26:46 -05:00
Vladimir Golovnev (Glassez)
d9e51c220e Fix compilation on Windows. 2015-10-11 15:07:20 +03:00
sledgehammer999
d413c2061c Merge pull request #3859 from glassez/simplify
Simplify Session/TorrentHandle classes.
2015-10-11 04:19:51 -05:00
sledgehammer999
9646794bb1 Merge pull request #3844 from glassez/added_time
Use libtorrent::torrent_status::added_time (Closes #3764).
2015-10-11 04:14:30 -05:00
Vladimir Golovnev (Glassez)
d40495a4be Simplify Session/TorrentHandle classes. 2015-10-11 08:05:57 +03:00
Vladimir Golovnev (Glassez)
b63a68c9db Use libtorrent::torrent_status::added_time (Closes #3764). 2015-10-11 07:58:56 +03:00
sledgehammer999
1ba1f90058 Merge pull request #3845 from glassez/drop_unused
Drop unused TorrentHandle methods.
2015-10-10 13:06:10 -05:00
sledgehammer999
8d025949d9 Merge pull request #3838 from glassez/wswitch
Fix compiler warnings (Closes #3826).
2015-10-10 13:01:27 -05:00
sledgehammer999
4291a08d47 Merge pull request #3649 from glassez/savepathlabel
Fix 'Append label to save path'. Closes #3495.
2015-10-10 12:45:20 -05:00
sledgehammer999
3eac05b229 Fix broken .desktop file icon for some locales. See #3905. 2015-10-09 17:53:26 +03:00
sledgehammer999
e39f8fafb1 Bump WebUI API_VERSION. 2015-10-09 16:46:20 +03:00
sledgehammer999
50b9438fb6 Cleaner way to disable linux qt5 builds on Travis. 2015-10-09 06:01:14 +03:00
sledgehammer999
357dfca3e0 Optimize text color for dark themes v2. Closes #3815. 2015-10-09 02:05:15 +03:00
sledgehammer999
8f8218c515 Fix Qt5 nox build on non-Windows. 2015-10-07 21:29:21 +03:00
sledgehammer999
10e3009c46 Enable Qt5 compilation for OS X on Travis. 2015-10-07 21:29:16 +03:00
sledgehammer999
cc5a737836 Fix Coverity Scan builds. 2015-10-05 23:39:43 +03:00
sledgehammer999
19ad58c394 Merge pull request #3685 from glassez/cpp11
Add C++11 support.
2015-10-05 11:53:42 -05:00
sledgehammer999
8a905bed5d Merge pull request #3879 from Chocobo1/avail_bar_crash
Fix potential crash when memory allocation failed. Closes #3877.
2015-10-05 11:30:23 -05:00
sledgehammer999
f781cc18a6 Merge pull request #3852 from ngosang/filemanagers
Fix Konqueror detection in Plasma (KDE5)
2015-10-05 04:09:57 -05:00
sledgehammer999
db174614f2 Add forum link in README. Closes #3853. 2015-10-04 22:30:44 +03:00
sledgehammer999
b9a061680d Fix broken donation link. Closes #3771. 2015-10-04 22:26:56 +03:00
sledgehammer999
63df3090d5 Fix python detection when the 'Anaconda' software is installed. Closes #3731. 2015-10-04 12:10:07 +03:00
sledgehammer999
ff8ff72eab Merge pull request #3863 from netswap/patch-1
[german.nsi] Added letter "p"
2015-10-04 03:37:30 -05:00
sledgehammer999
8b547644b0 Merge pull request #3165 from Chocobo1/rss_sort
Sort labels in RSS Downloader dialog
2015-10-03 18:52:46 -05:00
Chocobo1
8605c4d4d3 Follow project coding style. Issue #2192. 2015-10-02 04:17:27 +08:00
Chocobo1
e95fce3084 Fix potential crash when memory allocation failed. Closes #3877. 2015-10-02 04:08:24 +08:00
Chocobo1
cf91685f6f Sort labels in RSS Downloader dialog, closes #3140. 2015-09-28 00:30:43 +08:00
netswap
e3e3f9a745 Added letters
The letter "p" was missing in "Dateiverknüpfung" in line 47 & 49
2015-09-26 15:05:36 +02:00
ngosang
6a1497de92 [searchengine] Detect new plugin URL from clipboard 2015-09-25 11:15:41 +02:00
ngosang
fc65ba4ced [searchengine] Fix invalid plugin message 2015-09-24 18:17:50 +02:00
ngosang
73fb0a6309 Fix Konqueror detection in Plasma (KDE5) 2015-09-24 15:53:44 +02:00
Vladimir Golovnev (Glassez)
2a411987db Bump minimum supported version of gcc to 4.8. 2015-09-24 13:26:25 +03:00
sledgehammer999
79617949c1 Merge pull request #3849 from ngosang/fix_rss_crash
Fix RSS crash when deleting RSS feeds. Closes #3846
2015-09-23 17:04:45 -05:00
ngosang
c3921ce2fe Fix RSS crash when deleting RSS feeds. Closes #997, #2152, #2461, #3718, #3747, #3766, #3806, #3814, #3829 and #3846. 2015-09-23 23:51:39 +02:00
Vladimir Golovnev (Glassez)
228f51fff9 Drop unused method TorrentHandle::firstFileSavePath(). 2015-09-23 21:55:04 +03:00
Vladimir Golovnev (Glassez)
08ee439a47 Drop unused method TorrentHandle::savePathParsed(). 2015-09-22 20:39:09 +03:00
Vladimir Golovnev (Glassez)
1a67282dd3 Fix Qt4 qmake warning (unknown QT: concurrent). 2015-09-22 19:34:07 +03:00
Vladimir Golovnev (Glassez)
d2f1216987 Fix compiler warnings (Closes #3826). 2015-09-21 11:45:40 +03:00
Vladimir Golovnev (Glassez)
b519700e33 Use c++11 enum classes instead of macros. 2015-09-18 08:33:22 +03:00
Vladimir Golovnev (Glassez)
12d9898b5d Enable c++11 support. 2015-09-18 08:33:12 +03:00
sledgehammer999
ef39fb0709 Merge pull request #3811 from ngosang/rss_refresh
[RSS] Removes refresh message when adding a new feed
2015-09-17 18:09:59 -05:00
sledgehammer999
f068f63f0d Merge pull request #3745 from cbodley/webui-savepath
RFC: [Web UI] add save_path to /query/torrents and /sync/maindata
2015-09-17 17:14:44 -05:00
sledgehammer999
57ca831d4d Merge pull request #3730 from Gelmir/rss_save
Couple o' fixes to RSS
2015-09-17 17:02:27 -05:00
ngosang
093c5d84d2 [RSS] Removes refresh message when adding a new feed 2015-09-17 19:17:52 +02:00
ngosang
e922275c72 [Web UI] Clean up JavaScript code 2015-09-17 17:48:38 +02:00
ngosang
52ff53b0b0 [Web UI] Reorder "Super seeding mode" option in right click menu 2015-09-17 17:22:09 +02:00
Chocobo1
65d3ca8c3f Capitalize items 2015-09-17 18:08:12 +08:00
Chocobo1
a16c264aa3 RSS Downloader dialog cleanup 2015-09-17 18:08:12 +08:00
sledgehammer999
4642a35de7 Don't limit the number of torrents that can be announced to the tracker/dht/lsd. Closes #3473. 2015-09-16 22:03:20 +03:00
sledgehammer999
50822a7476 Merge pull request #3071 from ppolewicz/interface_bind_fixes
Interface bind fixes
2015-09-16 13:04:52 -05:00
Pawel Polewicz
f108e67dcc Call setListeningPort() when state of network interface changes (closes qbittorrent/qBittorrent#475, closes qbittorrent/qBittorrent#3072) 2015-09-16 14:32:49 +02:00
Pawel Polewicz
fb22940639 Small refactor in Session::setListeningPort() 2015-09-16 14:32:49 +02:00
ngosang
9c7bb08a03 Automatically add trackers to new downloads. 2015-09-16 11:43:57 +02:00
sledgehammer999
b4680e82b7 Merge pull request #3765 from jsayol/patch-1
Allow adding torrent link from Torcache
2015-09-15 18:52:53 -05:00
sledgehammer999
cbf683878a Show current label in the torrent context menu. Closes #3776. 2015-09-16 02:43:48 +03:00
Josep Sayol
fd5d3d0a48 Allow adding torrent link from Torcache
Recent changes in Torcache prevent adding (or drag-and-dropping) a torrent link into qBittorrent. Modifying DownloadManager to always spoof the HTTP Referer header to the file itself being downloaded solves this.
2015-09-16 05:08:53 +07:00
sledgehammer999
5cb022c7b1 Merge pull request #3736 from Chocobo1/option
Cleanup in options_imp
2015-09-15 17:03:45 -05:00
sledgehammer999
145950e766 Optimize text color for dark themes. Closes #3633. 2015-09-15 23:23:49 +03:00
sledgehammer999
8bde7d45b8 Try to avoid loading a corrupted configuration file. Also log errors encountered while saving/loading the configuration. Closes #3503. 2015-09-14 02:23:13 +03:00
Chocobo1
e0935fe14f Follow project coding style. Issue #2192. 2015-09-10 15:24:38 +08:00
Chocobo1
c27aa7723e Options GUI layout cleanups: Speed Page
Move uTP options to it's own section
2015-09-10 15:24:38 +08:00
Casey Bodley
87b26a8dcc webui: add save_path to /query/torrents
Signed-off-by: Casey Bodley <cbodley@gmail.com>
2015-09-07 16:25:07 -04:00
sledgehammer999
0b2b07e98e Sync translations from Transifex and run lupdate. 2015-09-04 23:30:39 +03:00
sledgehammer999
581d544f61 Fix typos. Make ìTP untranslatable. Use American variation of words. Closes #3654. 2015-09-04 23:14:02 +03:00
sledgehammer999
aa5fbd461f Merge pull request #3734 from ngosang/rss_sidebar
Fix RSS panel position not saved. Closes #3732
2015-09-04 13:53:05 -05:00
sledgehammer999
5394b77086 Merge pull request #3725 from Chocobo1/osx
TravisCI: build on osx
2015-09-03 03:24:27 -05:00
Chocobo1
7028c2712a Reorder code in options_imp::loadOptions() according to GUI layout 2015-09-03 15:19:05 +08:00
Chocobo1
89be63da02 TravisCI: build on osx 2015-09-03 12:51:54 +08:00
ngosang
4f504f597d Fix RSS panel position not saved 2015-09-03 04:45:47 +02:00
ngosang
a9e9a9c835 [Web UI] Changes in labels implementation 2015-09-03 03:16:07 +02:00
Felipe Barriga Richards
4ae2f6c33b webui (js): feature: Added complete support for labels (add/set/reset/display/filter) #648
Changes:
- added list of labels on the lower-left corner
- added support to add/set/reset labels on context menu
- added support to filter torrents by label
2015-09-03 03:16:07 +02:00
Felipe Barriga Richards
76d93c23b7 webui (c++): feature: added labels support. #648 2015-09-03 03:16:07 +02:00
sledgehammer999
9d051ea523 Merge pull request #3713 from ngosang/translate_countries
Allows translation of country names. Closes #3710
2015-09-02 16:48:14 -05:00
sledgehammer999
ff279681ac Merge pull request #3599 from pmzqla/strings
Misc translatable strings changes
2015-09-02 16:47:20 -05:00
Gabriele
5cc5552d9b Use infinity symbol rather than -1 for nb_connections 2015-09-02 23:34:17 +02:00
Gabriele
42c74f9553 Avoid concatenation when dealing with translatable strings
Concatenation could be problematic with RTL languages.
2015-09-02 23:34:17 +02:00
Gabriele
420fa82e8d Put some string placeholders between quotes 2015-09-02 23:26:19 +02:00
sledgehammer999
70f2086202 Merge pull request #3567 from ngosang/rssfixes
[RSS] Several changes in RSSs. Closes #3560
2015-09-02 14:24:25 -05:00
ngosang
ee21562426 [RSS] Handle more types of RSS feeds 2015-09-02 20:10:44 +02:00
ngosang
b6c707c080 [RSS] Simplify string translation 2015-09-02 20:00:38 +02:00
ngosang
2eaeead67c [RSS] Allow multiple selection in RSS torrents list 2015-09-02 19:36:45 +02:00
ngosang
7c7da44622 [RSS] Don't hide the elements in Unread list when clicked 2015-09-02 19:12:39 +02:00
ngosang
7c6da30705 [RSS] More precise message and code simplification in RSS feeds deletion 2015-09-02 19:12:32 +02:00
ngosang
2955bb5488 [RSS] Improve error handling when a RSS feed doesn't contain torrents 2015-09-02 19:06:33 +02:00
ngosang
b78ccf289e [RSS] Fix contextual menu in RSS torrents list 2015-09-02 19:01:59 +02:00
ngosang
b9b7786477 [RSS] Trim elements text in RSS articles 2015-09-02 18:51:39 +02:00
ngosang
c3592304b6 [RSS] Handle magnet links as torrents instead of news URLs. Closes #3560 2015-09-02 18:51:39 +02:00
Nick Tiskov
2442411a5e Fix: Adding RSS rule with a new label doesn't add this label to UI. 2015-08-31 02:12:02 +03:00
Nick Tiskov
f5c0cddea5 Fix: Label changes to first item in RSS rule list are forgotten, because checkRegex calls updateMustLineValidity, which saves the rule before new label can be applied. 2015-08-31 01:48:30 +03:00
sledgehammer999
51e0e485f4 Merge pull request #3592 from pmzqla/favicon
Try to download favicon.png when the download of favicon.ico fails
2015-08-30 15:35:53 -05:00
Gabriele
3889b4c101 Try to download favicon.png when the download of favicon.ico fails
This was done only when favicon.ico couldn't be decoded, but not when
favicon.ico could not be downloaded at all.
2015-08-30 22:28:06 +02:00
sledgehammer999
247ba02bb8 Merge pull request #3586 from pmzqla/configure
configure: don't depend on GNU sed
2015-08-30 13:52:34 -05:00
sledgehammer999
25c6d8bf6b Merge pull request #3561 from pmzqla/proxy-torrent
Add an option to allow the use of proxies only for torrents
2015-08-30 12:38:16 -05:00
sledgehammer999
cf72318d74 Merge pull request #2633 from Chocobo1/my_dev2
Fix wrong default download directory in Windows. Closes #2625.
2015-08-30 10:59:24 -05:00
Gabriele
a8c05ca02e Add https_proxy env variable
This forces Python to use the HTTP proxy for HTTPS connections.
2015-08-30 17:46:12 +02:00
Gabriele
1c8abd5c3b Add an option to allow the use of proxies only for torrents
Closes #2701.
2015-08-30 17:46:11 +02:00
Chocobo1
6ebe3897fb Fix wrong default download directory in Windows. Closes #2625. 2015-08-30 23:45:34 +08:00
sledgehammer999
9faa44eabf Merge pull request #3581 from pmzqla/redirect
DownloadManager: fix downloads after a redirection
2015-08-30 09:43:18 -05:00
sledgehammer999
f81ffdb78e Merge pull request #3644 from Chocobo1/graph_btn
Change "Select Graphs" from QToolButton to QComboBox
2015-08-30 08:59:00 -05:00
Chocobo1
2997c0fd1e Change "Select Graphs" from QToolButton to QComboBox 2015-08-30 21:38:05 +08:00
sledgehammer999
193d273f00 Merge pull request #3636 from Chocobo1/moveOption_del
Move option "Confirm torrent deletion" to Behavior page
2015-08-30 08:34:54 -05:00
Chocobo1
e54cd8499e Move option "Confirm torrent deletion" to Behavior page 2015-08-30 21:28:16 +08:00
ngosang
c984902fbf Allows translation of country names 2015-08-30 15:09:15 +02:00
sledgehammer999
45cbf4bf25 Merge pull request #3481 from Chocobo1/moveOption
Move option "Ignore transfer limits on local network" to Speed page
2015-08-30 07:58:30 -05:00
Chocobo1
2204f27de1 Follow project coding style. Issue #2192. 2015-08-30 20:35:33 +08:00
sledgehammer999
735b1cc6b9 Merge pull request #3470 from ngosang/reorder_buttons
Change Queue buttons order in the Toolbar (GUI & Web UI)
2015-08-30 07:10:20 -05:00
sledgehammer999
a0da4a844c Merge pull request #3625 from Chocobo1/native_path
Use native path separators
2015-08-30 07:07:58 -05:00
sledgehammer999
45ef98b077 Update ax_boost_base.m4 to fix ppc64le detection. 2015-08-30 04:50:30 +03:00
sledgehammer999
ef7de49ec8 Fix dolphin detection for KDE5. 2015-08-29 23:49:14 +03:00
sledgehammer999
e937344761 Fix a bug with highlighting selected file on Windows. Closes #3185. 2015-08-29 23:49:09 +03:00
sledgehammer999
f3c3912923 Merge pull request #2544 from pmzqla/select-destination
Select the file of single file torrents when opening the destination folder
2015-08-29 12:49:52 -05:00
Gabriele
e728710430 Select the file of single file torrents when opening destination folder
Also, add the support for Nautilus (Gnome 3), Caja and Nemo.
2015-08-29 16:09:22 +02:00
sledgehammer999
ddd6533812 Merge pull request #3701 from onto/master
SpeedPlotView: fix render graphs with zero speed
2015-08-29 07:28:02 -05:00
Anton Lashkov
0d74131edd SpeedPlotView: fix render graphs with zero speed 2015-08-29 11:24:51 +04:00
Chocobo1
cf3a87ed55 Use native path separators, fixup of 030dd9e, 3baec1c. 2015-08-29 14:17:21 +08:00
sledgehammer999
632cba8b30 Merge pull request #3638 from Fale/patch-1
Fix minimum libtorrent-rasterbar version
2015-08-17 15:49:46 -05:00
Vladimir Golovnev (Glassez)
0afa4d260c Fix 'Append label to save path'. Closes #3495. 2015-08-17 18:37:00 +03:00
Fabio Alessandro Locati
3f2303a479 Fix minimum libtorrent-rasterbar version
as title
2015-08-17 10:13:20 +02:00
Gabriele
7bfa847d01 configure: don't depend on GNU sed
Closes #3169.
2015-08-07 00:11:42 +02:00
sledgehammer999
331219dda8 Write BOM to german.nsi. Closes #3574, #3566 2015-08-05 23:24:21 +03:00
Gabriele
b2df917011 DownloadManager: fix downloads after a redirection
Closes #3580.
2015-08-05 21:41:57 +02:00
Chocobo1
b727ce3b29 Remove filters frame 2015-08-05 12:56:23 +08:00
Chocobo1
0e1eaa518b Alignment cleanup 2015-08-05 12:56:23 +08:00
sledgehammer999
f893131b8d Less verbose compilation output. Closes #3565. 2015-08-04 19:17:01 +03:00
sledgehammer999
2ec1d9e39e New translation: Slovenian
Also re-run lupdate.
2015-08-04 19:14:02 +03:00
sledgehammer999
bd2f9e436c Sync translations from Transifex and run lupdate. 2015-08-04 19:03:32 +03:00
sledgehammer999
ea38e4da4d Merge pull request #2699 from pmzqla/copyurl-search
Add "Copy description page URL" button in search tab
2015-08-04 18:45:31 +03:00
Gabriele
4d66a0929c Add "Copy description page URL" button in search tab
Closes #2371.
2015-08-04 11:18:46 +02:00
sledgehammer999
0520f01510 Merge pull request #3550 from Chocobo1/title_fix
Add back "qBittorrent" in program updater title, closes #3549.
2015-08-04 11:53:03 +03:00
Chocobo1
deaf322740 Add back "qBittorrent" in program updater title, closes #3549. 2015-08-04 13:07:14 +08:00
sledgehammer999
929cd30e33 Merge pull request #3517 from glassez/strict_aliasing
Fix strict-aliasing warning.
2015-08-03 02:50:22 +03:00
sledgehammer999
eef2a0a200 Merge pull request #3537 from ngosang/fixwarnings
Fix 3 compiler warnings
2015-08-02 16:10:24 +03:00
ngosang
fbb47ce08f Fix 3 compiler warnings 2015-08-02 14:22:47 +02:00
sledgehammer999
f746760ccf Merge pull request #3505 from pmzqla/search-close
searchengine: fix crash when a tab with a running search is closed
2015-08-02 15:21:30 +03:00
Gabriele
67c0f47928 searchengine: remove size constraints to search button 2015-08-02 14:04:11 +02:00
Gabriele
7c00e80f7a searchengine: use kill() instead of terminate() on Windows 2015-08-02 14:04:11 +02:00
Gabriele
3a9cf70228 searchengine: use a single string for the search results number label 2015-08-02 14:04:11 +02:00
Gabriele
0f35bac605 searchengine: don't use strings to determine the status of search processes
'&' symbols are dynamically added to strings, making comparisons
unreliable.
2015-08-02 14:04:07 +02:00
Gabriele
1b24feb4f4 searchengine: drop unused flag and related code 2015-08-02 13:53:12 +02:00
Gabriele
ee8a492954 searchengine: fix crash when closing tab with running search
If a tab is closed, the search process gets terminated. This can take
a while and by the time searchFinished() is executed, activeSearchTab
is null, leading to a crash. Fix this by waiting for the process to
terminate and make sure activeSearchTab is not null when used.
2015-08-02 13:49:42 +02:00
sledgehammer999
e3cb9de365 Bump minimum libtorrent version required to 1.0.6. 2015-07-31 23:29:59 +03:00
sledgehammer999
a217988dbb Merge pull request #3515 from glassez/parser
Fix HTTP header parsing. Closes #3511.
2015-07-31 02:38:04 +03:00
sledgehammer999
81c6de48dc Don't use geoip for Travis CI. 2015-07-30 23:45:35 +03:00
sledgehammer999
1217d8d021 Merge pull request #3497 from Chocobo1/ext_param_early
Fix "Run External Program Launches too Early" issue
2015-07-30 11:28:08 +03:00
sledgehammer999
3362766cb5 Merge pull request #3512 from Chocobo1/travis
Migrate TravisCI to container-based infrastructure
2015-07-30 11:27:29 +03:00
Vladimir Golovnev (Glassez)
34da3e653d Fix strict-aliasing warning. 2015-07-30 09:38:25 +03:00
Vladimir Golovnev (Glassez)
ddb5c0052d Fix HTTP header parsing. Closes #3511. 2015-07-30 08:57:52 +03:00
Chocobo1
a8f0acecb7 Migrate TravisCI to container-based infrastructure, closes #3506. 2015-07-30 12:02:00 +08:00
sledgehammer999
8f1f57afe4 Remove obsolete Boost configurations. 2015-07-30 01:51:55 +03:00
sledgehammer999
0209a9f41d Merge pull request #3228 from Chocobo1/win_build
Compilation on windows
2015-07-30 00:21:11 +03:00
sledgehammer999
bf3a6d1c20 Merge pull request #3455 from Chocobo1/label_fix
Fix '&' character in label name becomes accelerator key, closes #3454.
2015-07-29 23:30:25 +03:00
sledgehammer999
256793aad7 Merge pull request #3447 from glassez/filters
Fix label filter. Closes #3429.
2015-07-29 23:28:47 +03:00
sledgehammer999
a56c21551d Merge pull request #3458 from Chocobo1/path_fix
Use `rootPath()` in save path field
2015-07-29 23:24:51 +03:00
sledgehammer999
fce3a2d5c0 Merge pull request #3457 from Chocobo1/ext_param
Add more "Run External Program" parameters
2015-07-29 23:17:19 +03:00
sledgehammer999
675298bc73 Merge pull request #3483 from glassez/bandwidth
Fix Bandwidth Scheduler. Closes #3376.
2015-07-29 22:28:22 +03:00
sledgehammer999
6985b553af Merge pull request #3494 from glassez/drop_libtorrent_0
Drop libtorrent 0.16.x support.
2015-07-29 22:15:45 +03:00
Gabriele
885eb64df3 Follow project coding style. Issue #2192. 2015-07-29 19:58:22 +02:00
Chocobo1
2ce9aa20a5 Fix "Run External Program Launches too Early" issue, closes #2107. 2015-07-28 18:21:56 +08:00
Chocobo1
be34f29b05 Fix warnings by qmake -Wall, cleanups 2015-07-28 16:55:01 +08:00
Chocobo1
077e94342f Add path to openssl, cleanups 2015-07-28 16:55:01 +08:00
Chocobo1
09d7d9a360 Update .gitignore 2015-07-28 16:55:01 +08:00
sledgehammer999
438ee23d2c Bump version status. 2015-07-28 03:07:42 +03:00
sledgehammer999
4f2d74f793 Merge pull request #3374 from ngosang/webui_info
[Web UI] Add information in General tab
2015-07-28 03:03:45 +03:00
sledgehammer999
0e62a52e59 Merge pull request #3493 from ngosang/python
Improve Python detection
2015-07-28 02:59:25 +03:00
sledgehammer999
369561f8f7 Fix typo in string which prevents word substitution. 2015-07-28 02:05:29 +03:00
ngosang
69812bbf18 Converts the string "Seeded for" to lowercase 2015-07-26 14:33:11 +02:00
ngosang
e33570625f [Web UI] Fix friendlyUnit() implementation. Related to #2719 2015-07-26 14:31:11 +02:00
ngosang
2132704e1d [Web UI] Add information in General tab 2015-07-26 14:27:59 +02:00
ngosang
38a6f4cc34 Improve Python detection 2015-07-26 14:15:40 +02:00
sledgehammer999
626a3b10d3 [webui] Fix ugly 'C++' wrapping in About dialog. 2015-07-26 00:35:04 +03:00
sledgehammer999
c7fa778732 Merge pull request #2702 from pmzqla/rss-count
Add count of unread items to RSS tab label
2015-07-26 00:29:47 +03:00
Vladimir Golovnev (Glassez)
e72cc4eaf9 Drop libtorrent 0.16.x support. 2015-07-25 19:00:18 +03:00
Gabriele
c48407e038 Add count of unread items to RSS tab label
Closes #2681.
2015-07-25 11:57:03 +02:00
sledgehammer999
7c7bb14a93 Sync translations from Transifex and run lupdate. 2015-07-25 03:24:44 +03:00
sledgehammer999
f9dc76928c Merge pull request #3467 from ngosang/webui_refresh
[Web UI] Massive increase in performance.
2015-07-23 01:17:57 +03:00
sledgehammer999
5b7ea0e611 Merge pull request #3186 from glassez/geoip
New GeoIP manager.
2015-07-22 23:59:00 +03:00
sledgehammer999
5437674fdf Fix installing search plugin by drag-n-dropping file. 2015-07-22 23:29:57 +03:00
sledgehammer999
21f18d015d Fix installing search plugin from local file. 2015-07-22 23:29:50 +03:00
sledgehammer999
47d9c12f4b Fix segfault on Linux due to early initialization of global var.
Utils::Misc::pythonVersion() gets called before the Logger is initialized.
2015-07-22 23:29:43 +03:00
sledgehammer999
f6bbd9377f Improve checks for python. Print python version and path to log. 2015-07-22 23:29:35 +03:00
Chocobo1
3baec1c327 Add more "Run External Program" parameters, closes #3053, #238, #1291, #1522. 2015-07-22 15:25:31 +08:00
Chocobo1
bd657fe9ae Move option "Ignore transfer limits on local network" to Speed page 2015-07-22 14:52:24 +08:00
Vladimir Golovnev (Glassez)
64ebc5cfd6 Fix Bandwidth Scheduler. Closes #3376. 2015-07-22 08:54:23 +03:00
Vladimir Golovnev (Glassez)
84922dcdcf Fix need restart to enable/disable peer countries resolution. 2015-07-22 08:07:13 +03:00
Vladimir Golovnev (Glassez)
79976fbfce Implement new GeoIPManager class. 2015-07-22 08:06:51 +03:00
Vladimir Golovnev (Glassez)
c702a7e426 Improve DownloadManager.
Now we can use downloaded data directly without saving to file.
We also can disable redirection to Magnet URI handling (useful for
non-torrent files downloading).
2015-07-21 09:50:39 +03:00
Vladimir Golovnev (Glassez)
336519b7b5 Move compression functions to Utils::Gzip. 2015-07-21 09:37:32 +03:00
sledgehammer999
dfb2f8b3b3 Merge pull request #3469 from ngosang/search_py32
[search engine] Fix cpu_count in old Python versions
2015-07-21 01:58:01 +03:00
sledgehammer999
8b99e29dc0 Fixup previous commits on python search. 2015-07-21 01:56:14 +03:00
sledgehammer999
d6af4683bb Merge pull request #2624 from pmzqla/python
Prefer python3 over python2
2015-07-21 01:55:14 +03:00
ngosang
32c813eece [search engine] Fix cpu_count in old Python versions 2015-07-20 19:12:58 +02:00
ngosang
03f86a71de Change Queue buttons order in the Toolbar (GUI & Web UI) 2015-07-20 04:44:29 +02:00
ngosang
2db942e606 [Web UI] Massive increase in performance. 2015-07-20 02:13:44 +02:00
sledgehammer999
6668018b45 Static order of items in the transferlist menu. 2015-07-20 02:48:11 +03:00
sledgehammer999
f21cafb605 Merge pull request #3410 from ngosang/preview
Minor changes in the GUI (Preview file & Forece Resume)
2015-07-20 02:46:40 +03:00
sledgehammer999
3864a7fdc6 Fix compiler warning for unused variable. 2015-07-20 00:13:18 +03:00
Chocobo1
ff8f37b262 Save trimmed string in preference 2015-07-20 01:16:15 +08:00
sledgehammer999
783f17ec4d Merge pull request #3456 from Chocobo1/localhost
Fix translated localhost address (::ffff:127.0.0.1) is not recognized
2015-07-19 19:37:59 +03:00
sledgehammer999
46a0eb4aa4 Update Changelog. 2015-07-19 19:34:54 +03:00
sledgehammer999
2de5390c08 Merge pull request #3433 from ngosang/webui_extlinks
[Web UI] Open external links in a new window/tab
2015-07-19 18:57:59 +03:00
sledgehammer999
bfaa0789f0 Merge pull request #3428 from ngosang/webui_queuenum
[Web UI] Fix sort by queue number
2015-07-19 18:52:18 +03:00
sledgehammer999
eb73e7c1d4 Merge pull request #3150 from ngosang/add_peer_dialog
Add multiple peers in Peers addition dialog. Closes #1563, #2245, #3133, #1419, #3287, #1419
2015-07-19 18:33:10 +03:00
ngosang
63ed69789b Allow to copy all peers with a keyboard shortcut 2015-07-19 13:04:30 +02:00
sledgehammer999
983c19eb29 Merge pull request #2676 from pmzqla/copytrackers
Allow to copy all the trackers with a keyboard shortcut
2015-07-19 14:04:28 +03:00
ngosang
cef3c9a34d Add multiple peers in Peers addition dialog. Closes #1563, #2245, #3133, #1419, #3287, #1419 2015-07-19 13:04:00 +02:00
Chocobo1
030dd9eed8 Use rootPath() in save path field 2015-07-19 18:17:28 +08:00
Chocobo1
6721363f8c Resave in Qt designer 2015-07-19 16:04:25 +08:00
Chocobo1
8bb2e98b90 Fix localhost address (::ffff:127.0.0.1) is not recognized when connecting to WebUI 2015-07-19 14:48:58 +08:00
Chocobo1
58b600198f Fix '&' character in label name becomes accelerator key, closes #3454. 2015-07-19 13:41:44 +08:00
sledgehammer999
5281593bb6 Fix qt5 compilation with QtConcurrent. 2015-07-18 21:06:50 +03:00
sledgehammer999
0b20794672 Fixup speedwidget code. 2015-07-18 19:31:51 +03:00
sledgehammer999
8dd7014af6 Merge pull request #2757 from onto/master
Upload/download speed graph widget.
2015-07-18 19:30:29 +03:00
Anton Lashkov
7b736b6ae3 Add speedwidget based on QGraphicsView 2015-07-18 00:54:36 +04:00
Vladimir Golovnev (Glassez)
d475ab3881 Fix label filter. Closes #3429. 2015-07-16 14:39:25 +03:00
sledgehammer999
b26724d12b Merge pull request #3437 from ngosang/extratorrent
[search engine] Remove the word 'torrent' in ExtraTorrent results
2015-07-16 00:47:23 +03:00
sledgehammer999
3d71ea5bc0 Merge pull request #3431 from Chocobo1/announce
DHT announce
2015-07-16 00:16:44 +03:00
ngosang
1f4d01e512 [Web UI] Changes in Force Resume icon and menu order 2015-07-15 23:12:12 +02:00
ngosang
9dbb2720b0 Changes in Force Resume icon and menu order 2015-07-15 22:46:24 +02:00
ngosang
808f07250e Minor changes in Preview File dialog 2015-07-15 22:46:24 +02:00
sledgehammer999
ed45ff89f8 Merge pull request #2861 from DoumanAsh/search_status_tab
Search status tab
2015-07-15 23:07:59 +03:00
sledgehammer999
d59440f99e Fix printing of the copyright symbol in the About dialog. 2015-07-15 22:45:13 +03:00
sledgehammer999
b80ced2b3a Don't add a torrent which doesn't have a matching .torrent file to its .fastresume file. Closes #3346. 2015-07-15 21:01:07 +03:00
Chocobo1
8873900df3 Also reannounce to DHT when "Force reannounce to all trackers" is selected 2015-07-15 07:05:04 +08:00
Chocobo1
4d6bde9731 Remove announce to DHT after editing tracker list 2015-07-15 07:05:04 +08:00
Chocobo1
fb1772f019 Rewrite TrackerList::reannounceSelected(), now it can force reannounce DHT 2015-07-15 07:05:04 +08:00
ngosang
cc503b36e8 [search engine] Remove the word 'torrent' in ExtraTorrent results 2015-07-15 00:27:09 +02:00
ngosang
0fe99fe10f [Web UI] Open external links in a new window/tab 2015-07-14 12:16:01 +02:00
DoumanAsh
e2aa8056af Search status uses tab's status 2015-07-14 09:03:27 +03:00
ngosang
10bba1a632 [Web UI] Fix sort by queue number 2015-07-14 01:48:05 +02:00
sledgehammer999
5e400d3117 Merge pull request #3377 from BlaXpirit/recheck-confirmation-setting
Implement an option to disable confirmation of torrent recheck
2015-07-14 00:32:53 +03:00
sledgehammer999
39e0c560cf Update color scheme of completed.png icon. 2015-07-13 23:44:55 +03:00
sledgehammer999
bf13238ccf Merge pull request #3385 from ngosang/webui_addtracker
[Web UI] Fix empty trackers addition
2015-07-13 23:37:14 +03:00
sledgehammer999
5b56717501 Merge pull request #3394 from ngosang/json3
[Web UI] Fix API Content Types. Closes #3393
2015-07-13 23:36:34 +03:00
sledgehammer999
de84bb9824 Merge pull request #3407 from glassez/seqdl
Fix restore sequential download state.
2015-07-13 23:35:17 +03:00
DoumanAsh
496f843016 Replace indent to 4 spaces 2015-07-13 09:31:23 +03:00
sledgehammer999
c1e2ddc843 Merge pull request #3384 from ngosang/webui_upnp
[Web UI] New option Web UI port UPNP. Closes #3358
2015-07-13 00:46:58 +03:00
ngosang
ac74f14408 Increase API_VERSION 2015-07-12 23:08:43 +02:00
ngosang
3a44b94cc7 [Web UI] New option Web UI port UPNP. Closes #3358 2015-07-12 23:07:49 +02:00
sledgehammer999
948b2c0410 Merge pull request #3375 from ngosang/completed_filter
Add Force Seeding state to Completed filter
2015-07-12 15:44:01 +03:00
sledgehammer999
d4151c1832 Merge pull request #3395 from ngosang/content_percent
Fix progress calculation in Content tab. Closes #2639 Closes #2752
2015-07-12 15:42:46 +03:00
sledgehammer999
365d039209 Merge pull request #3386 from ngosang/webuibug
[Web UI] Fix an error in Content tab when the torrent doesn't have me…
2015-07-12 14:39:13 +03:00
sledgehammer999
40c9727cb9 Merge pull request #3383 from ngosang/webui_port
[Web UI] Ports between 1 and 65535 as in the GUI. Closes #1602
2015-07-12 14:33:39 +03:00
sledgehammer999
e6946042ae Merge pull request #3382 from ngosang/webui_trackmenu
[Web UI] Torrent download from hash. Closes #1173
2015-07-12 14:27:40 +03:00
Vladimir Golovnev (Glassez)
8e03f01518 Fix restore sequential download state. 2015-07-12 13:56:24 +03:00
ngosang
6413537f45 [Web UI] Fix API Content Types. Closes #3393 2015-07-12 01:29:03 +02:00
ngosang
e20a24ab2e Fix progress calculation in Content tab. Closes #2639 Closes #2752 2015-07-12 01:27:16 +02:00
ngosang
47c31c8b03 [Web UI] Ports between 1 and 65535 as in the GUI. Closes #1602 2015-07-12 01:24:34 +02:00
ngosang
f0d32e2cde [Web UI] Torrent download from hash. Closes #1173 2015-07-12 01:21:09 +02:00
ngosang
62b803e268 [Web UI] Fix empty trackers addition 2015-07-11 15:35:53 +02:00
ngosang
9ea56ea5d4 [Web UI] Fix an error in Content tab when the torrent doesn't have metadata 2015-07-09 18:11:04 +02:00
Oleh Prypin
7474c05209 Implement an option to disable confirmation of torrent recheck 2015-07-08 23:29:31 +03:00
sledgehammer999
647140c7c7 Merge pull request #3371 from ngosang/webuialterdl
[Web UI] Fix alternative global rate limits. Closes #3359
2015-07-08 21:19:08 +03:00
sledgehammer999
46c54e51ee Update Changelog. 2015-07-08 19:19:11 +03:00
sledgehammer999
9eee92b5c6 Merge pull request #3372 from ngosang/torrentz_speed
[search engine] Fix Python 2 implementation of Torrentz
2015-07-08 18:25:57 +03:00
ngosang
ac2c8a3d30 Add Force Seeding state to Completed filter 2015-07-08 16:01:10 +02:00
ngosang
ee44fd54b6 [search engine] Fix Python 2 implementation of Torrentz 2015-07-08 11:04:50 +02:00
ngosang
0ed8ea9599 [Web UI] Additional checks in Options dialog 2015-07-08 09:53:01 +02:00
ngosang
d9ef7c1b32 [Web UI] Reorder Options dialog code 2015-07-08 09:06:41 +02:00
ngosang
357334fb46 [Web UI] Fix alternative global rate limits. 2015-07-08 06:47:59 +02:00
sledgehammer999
d0b54b0797 Merge pull request #3348 from ngosang/webuistates
[Web UI] Fix missing torrent states.
2015-07-04 02:24:32 +03:00
ngosang
768e87b0da [Web UI] Fix missing torrent states. 2015-07-04 01:04:10 +02:00
sledgehammer999
14187978c0 Update Chinese locale names for WebUI too. 2015-07-03 22:52:08 +03:00
sledgehammer999
cac91737ac Sync translations from Transifex and run lupdate. 2015-07-03 22:34:36 +03:00
sledgehammer999
0b18e7bd60 Add unicodestrings.h to core.pri 2015-07-03 22:22:14 +03:00
sledgehammer999
61705fdd42 Partially revert fb7ba92f6 and split the Chinese locales into 3.
Chinese Simplified, Chinese Traditional(Taiwan), Chinese Traditional(Hong Kong).
Closes #3262.
2015-07-03 22:20:32 +03:00
sledgehammer999
6dd3795b7a Fix Properties bar size when started minimized to tray. Closes #3206. 2015-07-03 22:09:37 +03:00
sledgehammer999
2e0c3f8751 Merge pull request #3329 from glassez/state
Fix missing torrent states. Closes #3302.
2015-07-03 21:58:57 +03:00
sledgehammer999
e1e8471728 Merge pull request #3324 from pmzqla/sort-eta-master
Fix sorting torrents by ETA
2015-07-03 21:55:52 +03:00
Heiko Becker
3c66997427 Add missing QDataStream include
Fixes building with Qt 5.5.0-beta.
2015-06-30 22:04:34 +03:00
Vladimir Golovnev (Glassez)
5ec2af7b5a Fix missing torrent states. 2015-06-30 11:14:41 +03:00
Gabriele
d3b23e4b81 Fix sorting torrents by ETA
Same as #2966.
Related issue: #2965.
2015-06-29 21:03:44 +02:00
Gabriele
d76a84048b Increase priority value of "High"
It was observed that setting the priority of a file to High has almost
no effect, so increase its value.
2015-06-29 02:01:51 +03:00
Gabriele
f21fbff1a8 Use enums instead of values when dealing with file priorities
Manually backported commit 10880e10f1 from v3_2_x branch.
2015-06-29 02:00:50 +03:00
sledgehammer999
c17a56cb8b Merge pull request #3318 from ngosang/searchorder
Fix column sort in search engine. Closes #2621
2015-06-29 01:42:17 +03:00
ngosang
b23608ec35 Fix column sort in search engine. Closes #2621 2015-06-28 23:51:09 +02:00
sledgehammer999
a8df699441 Merge pull request #3197 from ngosang/webui_websources
[Web UI] Add Web Seeds (HTTP Sources) tab
2015-06-28 19:34:23 +03:00
sledgehammer999
1b430abb16 Don't use a default upload limit. Closes #3275. 2015-06-28 19:21:47 +03:00
sledgehammer999
e4062e0f35 Sync translations from Transifex and run lupdate. 2015-06-28 18:18:44 +03:00
ngosang
e6f2926ccd [Web UI] Don't update the tabs if tab's panel is collapsed 2015-06-28 16:36:46 +02:00
ngosang
263d45ca9d [Web UI] Use camelCase in variable names 2015-06-28 16:36:46 +02:00
ngosang
8e4b9f30bb [Web UI] Add Web Seeds (HTTP Sources) tab 2015-06-28 16:36:45 +02:00
sledgehammer999
f12b300298 Partially revert e675625d0d.
It causes problems with Travis CI builds because travis checks out the branch which might have newer commits and not find our particular commit.
2015-06-28 16:43:04 +03:00
sledgehammer999
2db4a661ee Merge pull request #3251 from Chocobo1/unicode_fix
Fix MSVC2013 complains on Unicode characters
2015-06-28 16:12:47 +03:00
sledgehammer999
3c6ee3d57f Merge pull request #3317 from ngosang/search_eng
Cosmetics changes in search engine
2015-06-28 16:11:20 +03:00
Chocobo1
e2a1211513 Mention github contributors in thanks.html 2015-06-28 21:08:21 +08:00
Chocobo1
436b3a472a Move translators & thanks to its own file
Add HTML header & cleanup
2015-06-28 21:08:20 +08:00
sledgehammer999
f177ecd50c Merge pull request #3313 from Chocobo1/travis
Travis script update
2015-06-28 16:07:51 +03:00
Chocobo1
e675625d0d Switch to libtorrent git repository
Reduce clone depth to 1
Fix missing variable when compiling for coverity scan
2015-06-28 21:02:41 +08:00
ngosang
326a74425f Cosmetics changes in search engine 2015-06-28 14:38:17 +02:00
sledgehammer999
a217d97fda Merge pull request #3304 from Chocobo1/menu_cap
Capitalize menu item
2015-06-28 15:17:37 +03:00
sledgehammer999
6959084f98 Merge pull request #3315 from Chocobo1/disk_space
Update disk space label after changing partition, closes #3309.
2015-06-28 15:16:29 +03:00
sledgehammer999
216bf9b477 Merge pull request #3279 from ngosang/webui_newoptions
[Web UI] Add new options
2015-06-28 15:15:35 +03:00
Chocobo1
3efb311076 Better message for users 2015-06-28 19:37:31 +08:00
ngosang
3ac9b2525e Increase API_VERSION due to changes in #3279, #3197, #3226 and #3040 2015-06-28 13:33:56 +02:00
ngosang
831b47b8f9 [Web UI] Add new options 2015-06-28 13:33:51 +02:00
ngosang
ff10eafcbc Follow project coding style. Issue #2192. 2015-06-28 13:32:57 +02:00
Chocobo1
38c0dbfc95 Update disk space label after changing partition, closes #3309. 2015-06-28 19:32:54 +08:00
Chocobo1
e739e81205 Fix compilation on MSVC2013 by moving unicode strings to
"unicodestrings.h". Closes #3059.
2015-06-28 19:18:57 +08:00
sledgehammer999
1bcfae5265 Merge pull request #3308 from ngosang/torrentreactorimp
[search engine] Update TorrentReactor
2015-06-28 14:13:25 +03:00
ngosang
b249b461d7 [search engine] Update TorrentReactor 2015-06-28 12:54:34 +02:00
sledgehammer999
af79ba433c Merge pull request #3307 from ngosang/extratorrentimp
[search engine] Update ExtraTorrent
2015-06-28 13:46:08 +03:00
sledgehammer999
14013c80c0 Merge pull request #3270 from Chocobo1/info_box
Reorder layout in information box
2015-06-28 13:45:25 +03:00
ngosang
85a7c7303d [search engine] Update ExtraTorrent 2015-06-28 12:36:33 +02:00
sledgehammer999
f94214ae14 Merge pull request #3291 from ngosang/torrent_creator
Add 16 KiB, 8 MiB and 16 MiB piece sizes in Torrent Creator. Closes #2656
2015-06-28 13:31:06 +03:00
sledgehammer999
ca4fbe40dd Merge pull request #3306 from ngosang/torrentzimp
[search engine] Update Torrentz
2015-06-28 13:30:31 +03:00
ngosang
91818417be Add 16 KiB, 8 MiB and 16 MiB piece sizes in Torrent Creator 2015-06-28 12:26:24 +02:00
ngosang
577ace4971 Follow project coding style. Issue #2192. 2015-06-28 12:26:03 +02:00
Chocobo1
776d91f663 Add connectionsLimit() back 2015-06-28 18:15:17 +08:00
sledgehammer999
b9ed94a098 Merge pull request #3292 from glassez/resumedata
Fix save resume data for torrents w/o metadata. Closes  #1488.
2015-06-28 12:43:00 +03:00
sledgehammer999
800630a813 Merge pull request #3290 from glassez/trackers
Fix trackers removing (#2892 regression).
2015-06-28 12:42:34 +03:00
sledgehammer999
4854a1b2ee Merge pull request #3311 from ngosang/btdiggimp
[search engine] Update BTDigg
2015-06-28 12:32:47 +03:00
sledgehammer999
bcfb8f1f53 Merge pull request #3312 from ngosang/kickassimp
[search engine] Update KickassTorrents
2015-06-28 12:30:30 +03:00
ngosang
2afa282190 [search engine] Update BTDigg 2015-06-27 21:33:50 +02:00
ngosang
2b2ffca7d0 [search engine] Update Torrentz 2015-06-27 21:00:47 +02:00
ngosang
650e7018a7 [search engine] Update KickassTorrents 2015-06-27 18:25:20 +02:00
Chocobo1
1e0ac5c5f1 Capitalize menu item, missed in b4a855f. 2015-06-26 14:16:57 +08:00
Vladimir Golovnev (Glassez)
b9c087f46c Fix save resume data for torrents w/o metadata. 2015-06-24 18:49:55 +03:00
Chocobo1
9d5cfbcda9 Preserve plain text formatting 2015-06-24 19:28:31 +08:00
Vladimir Golovnev (Glassez)
ffe6292237 Fix trackers removing. 2015-06-24 14:09:43 +03:00
sledgehammer999
9d97c05889 Merge pull request #3282 from ngosang/search_check
[search engine] Fix novaprinter.py version number
2015-06-23 18:22:13 +03:00
sledgehammer999
2658b39434 Merge pull request #3283 from glassez/rss
Fix add torrent dialog is not shown (#2892 regression).
2015-06-23 18:21:24 +03:00
sledgehammer999
f6cf07a147 Merge pull request #3284 from glassez/about
Fix ugly 'C++' wrapping in About dialog.
2015-06-23 18:21:13 +03:00
Vladimir Golovnev (Glassez)
4752fa5301 Fix ugly 'C++' wrapping in About dialog. 2015-06-23 13:22:52 +03:00
Vladimir Golovnev (Glassez)
f40d3d1fc6 Fix add torrent dialog is not shown. 2015-06-23 11:19:34 +03:00
ngosang
d7ffabe7ca [search engine] Fix novaprinter.py version number 2015-06-23 09:46:19 +02:00
Chocobo1
b318f54fdf Force set "plain text" format to reduce attack vector. 2015-06-22 22:10:33 +08:00
Chocobo1
661ddd75b6 Allow wordWrap for "Save Path" & "Comment" 2015-06-22 13:32:32 +08:00
sledgehammer999
bc97208516 Merge pull request #3187 from glassez/model
Improve TorrentModel class (Issue #2433).
2015-06-21 16:32:30 +03:00
Vladimir Golovnev (Glassez)
64c8f61bb1 Improve TorrentModel class. 2015-06-21 16:28:21 +03:00
sledgehammer999
7699b7ce6f Merge pull request #3271 from glassez/rename
Fix torrent renaming (3715e8d2 regression).
2015-06-21 16:00:49 +03:00
Vladimir Golovnev (Glassez)
347832d852 Fix torrent renaming (3715e8d2 regression). 2015-06-21 13:32:48 +03:00
Chocobo1
50b3a24371 Change Comment field from QTextBrowser to QLabel 2015-06-21 13:52:11 +08:00
Chocobo1
4d5512dcca Reorder layout in information box 2015-06-21 13:20:19 +08:00
sledgehammer999
2e6c890883 Partially revert 30f21259f8.
Fixes Linux issue for when the theme doesn't have a corresponding icon.
2015-06-21 00:56:18 +03:00
sledgehammer999
f94d733c62 Minimize to tray only if the relevant option is enabled. 2015-06-20 23:28:40 +03:00
sledgehammer999
9032808112 Fix sorting by queue. 2015-06-20 20:05:49 +03:00
sledgehammer999
a22137e06e Merge pull request #3240 from ngosang/webui_interface
[Web UI] Changes in menus, new features and reordered Options.
2015-06-20 19:31:06 +03:00
ngosang
973518694e [Web UI] Tabs indentation replaced with spaces 2015-06-20 18:18:36 +02:00
ngosang
d6caf1c839 [Web UI] Reorder the tabs/groups in Options window 2015-06-20 18:04:23 +02:00
ngosang
6f7dca1f83 [Web UI] Option to hide Top Toolbar 2015-06-20 18:04:18 +02:00
sledgehammer999
dbbf1a8fce Merge pull request #2690 from Chocobo1/dev4
Don't close downloadFromURL dialog when showing empty url warning.
2015-06-20 18:50:51 +03:00
sledgehammer999
27e18f0eb8 Merge pull request #2643 from mayankasthana/tab_FocusChange
Download-from-URL textbox change focus on tab key
2015-06-20 18:43:37 +03:00
ngosang
bbc667cb78 [Web UI] Changes in menus to keep the client's style 2015-06-20 17:36:13 +02:00
sledgehammer999
74d757f0f1 Delete tempfile when downloading favicon.ico. Closes #3257. 2015-06-20 18:21:20 +03:00
sledgehammer999
a224650281 Merge pull request #3078 from Chocobo1/props_widget
Revamp general tab info, closes #982
2015-06-20 16:50:32 +03:00
sledgehammer999
54abcfcd93 Merge pull request #3260 from glassez/sort
Fix torrent state sort order (#2892 regression).
2015-06-20 16:40:47 +03:00
sledgehammer999
627d74233b Merge pull request #3245 from glassez/upgrade
Upgrade to v3.3
2015-06-20 16:33:32 +03:00
Vladimir Golovnev (Glassez)
b29f6916cb Implement upgrage code. 2015-06-20 16:23:10 +03:00
Vladimir Golovnev (Glassez)
7041a96fda Fix torrent state sort order. 2015-06-20 16:03:56 +03:00
Chocobo1
6bc42cfd1a Add functionality to new data fields, cleanups 2015-06-20 20:42:44 +08:00
Chocobo1
bd8b8a8c8f Use warning message box instead of critical 2015-06-20 20:36:35 +08:00
sledgehammer999
cf1a62cec3 Merge pull request #2719 from Chocobo1/dev6
Fix potential out-of-bound access in misc::friendlyUnit()
2015-06-20 02:46:47 +03:00
sledgehammer999
fd6fcffa67 Merge pull request #3247 from glassez/ratio
Fix ratio limit for new torrents. Closes #3210.
2015-06-19 18:53:40 +03:00
sledgehammer999
75fecf9645 Merge pull request #3226 from ngosang/webui_dhtport
[Web UI] Remove DHT port setting. Closes #3225
2015-06-18 23:37:53 +03:00
Vladimir Golovnev (Glassez)
04f3f9d29d Fix ratio limit for new torrents. 2015-06-18 16:28:52 +03:00
sledgehammer999
fb7ba92f69 Rename Chinese translation files. Closes #2936. 2015-06-17 23:06:08 +03:00
sledgehammer999
c259666e43 Merge pull request #2803 from Chocobo1/shutdown
WebUI: add delay in shutdown command in order to send out response msg
2015-06-17 22:58:49 +03:00
Gabriele
6609d3e89f Don't use list of versions for the Python fallback detection on Windows
Always pick the newest versions among those installed.
2015-06-17 21:30:35 +02:00
Gabriele
f4c44ce128 Don't specify the Python version required in the notification
Both python2 and python3 are supported.
2015-06-17 21:30:35 +02:00
Gabriele
a8276dd70f Update link to the Windows Python installer
From v2.7.3 to v3.4.3.
2015-06-17 21:30:35 +02:00
Gabriele
0c23d22472 Show notification if Python is not found and a search is started
Also, don't bother starting a search if it's known that Python is
not available.
2015-06-17 21:30:12 +02:00
Gabriele
e34cc79dad Use python3 and python2 instead of python on Linux
Prefer python3 over python2 when both are available.

Both python2 and python3 should always exists.
More info at: http://legacy.python.org/dev/peps/pep-0394/
2015-06-17 21:29:20 +02:00
Vladimir Golovnev (Glassez)
de712c6ba9 Use native QDir::removeRecursively() in Qt5. 2015-06-17 19:19:56 +03:00
sledgehammer999
1396c63525 Merge pull request #3224 from glassez/fastresume
Fix resume torrents without metadata.
2015-06-17 19:12:22 +03:00
Vladimir Golovnev (Glassez)
8cc9c64ff8 Fix resume torrents without metadata. 2015-06-17 19:06:48 +03:00
Chocobo1
64665146e1 Expose more data fields 2015-06-17 23:20:34 +08:00
Chocobo1
cdec6c9027 Add new data fields, capitialize labels, cleanups 2015-06-17 23:20:34 +08:00
sledgehammer999
0172ab1f50 Merge pull request #3242 from glassez/hotfixes
Fix some #2892 regressions. Closes #3210.
2015-06-17 17:45:14 +03:00
Vladimir Golovnev (Glassez)
d76c4554e2 Fix MaxRatio ignoring. 2015-06-17 14:45:47 +03:00
Vladimir Golovnev (Glassez)
3d09f579d0 Fix torrent creation date loss. 2015-06-17 11:21:41 +03:00
Chocobo1
e95a017e33 Fix potential out-of-bound access of units[i] 2015-06-17 08:03:51 +08:00
sledgehammer999
2c91157926 Update settings for Coverity Scan. 2015-06-17 00:19:00 +03:00
sledgehammer999
d2697cd124 Merge pull request #2957 from Chocobo1/coverity_scan
Hookup to Coverity Scan, Closes #2601
2015-06-17 00:13:51 +03:00
sledgehammer999
061fbeff56 Merge pull request #3234 from glassez/openfile
Fix crash when cancel open file dialog.
2015-06-16 22:55:57 +03:00
Vladimir Golovnev (Glassez)
77b3a0c4cd Fix crash when cancel open file dialog.
Closes #3232.
2015-06-16 09:09:08 +03:00
ngosang
8340abbe63 [Web UI] Remove DHT port setting. Closes #3225 2015-06-15 11:00:36 +02:00
sledgehammer999
3f8e76ce93 Clear missing files flag when resuming or force rechecking. Fixes issues in #2750. 2015-06-15 00:48:28 +03:00
sledgehammer999
a2c48646ae New translation: Indonesian. 2015-06-14 23:43:21 +03:00
sledgehammer999
78f5b960a0 Sync translations from Transifex and run lupdate. 2015-06-14 23:28:28 +03:00
sledgehammer999
f6236d13d1 Merge pull request #3190 from Chocobo1/ratio_fix_master
Improve ratio calculation formula
2015-06-14 23:02:34 +03:00
sledgehammer999
6b56a8accf Merge pull request #3211 from yurivict/compile-issues
Added missing include <cstdlib>
2015-06-14 21:50:13 +03:00
sledgehammer999
9febd608c6 Merge pull request #3216 from Chocobo1/rm
Fix additional file included in #3167
2015-06-14 21:49:21 +03:00
sledgehammer999
e4282c10c7 Merge pull request #2847 from Chocobo1/move_stats
Revamp menu items
2015-06-14 20:21:27 +03:00
sledgehammer999
575578428c Merge pull request #3167 from Chocobo1/opt_ip_filter_tracker
Add checkbox option for IpFilterTrackers, closes #3154.
2015-06-14 20:15:12 +03:00
Chocobo1
6e1bfdef4c Fix additional file included in 32a712f 2015-06-15 00:02:07 +08:00
Chocobo1
36da49667a Resave in Qt Designer 2015-06-14 20:01:14 +08:00
Chocobo1
ade1936f9c Remove menu items: "Visit Website" and "Report a Bug".
Many issues opened on github should be asked on forum first, and the links are already present in "About" window.
2015-06-14 20:01:14 +08:00
Chocobo1
580642b08e Rename "Execution Log" to "Log".
Rename "When Downloads Done" to "On Downloads Done".
2015-06-14 20:01:14 +08:00
Chocobo1
b4a855f4c1 Move statistics from Tools to View
Reorder & add separators in Help menu

Rename `Auto-Shutdown on downloads completion` to `When downloads done`

Capitalize menu items, modify accelerator
2015-06-14 20:01:11 +08:00
Chocobo1
32a712f005 Add checkbox option for IpFilterTrackers, closes #3154. 2015-06-14 19:10:11 +08:00
Yuri
ea2b2937b9 Added missing include <cstdlib> for rand(3) 2015-06-14 03:17:12 -07:00
Yuri
a86961a22e Added missing include <cstdlib> for rand(3) 2015-06-14 03:14:27 -07:00
Chocobo1
2299580dc9 Improve ratio calculation formula. Closes #3096. 2015-06-14 17:45:40 +08:00
sledgehammer999
77786bb8bb Add translator to credits. 2015-06-14 12:28:08 +03:00
sledgehammer999
9ee67364c2 Merge pull request #3209 from ngosang/minor_fixes
Code clean up
2015-06-14 11:40:41 +03:00
ngosang
4a76526417 Code clean up
This changes were proposed by @PiotrNawrot in these PRs: #2967, #2970.
2015-06-14 10:35:32 +02:00
sledgehammer999
f89c44e1a0 Merge pull request #2938 from dartraiden/master
Fixed typos, spelling correction
2015-06-14 11:20:15 +03:00
dartraiden
8ac83cfd42 Fixed typos, spelling correction 2015-06-14 10:55:46 +03:00
sledgehammer999
f5b0008158 Merge pull request #2805 from ngosang/typo_revision
Changes in typography
2015-06-13 22:06:12 +03:00
sledgehammer999
1be26cf2bd Merge pull request #2808 from ngosang/AnnounceToAllTrackers
Change default preferences
2015-06-13 21:39:45 +03:00
ngosang
e01a61d816 changes in typography 2015-06-13 20:04:20 +02:00
sledgehammer999
25e04ee2f3 Merge pull request #3191 from Chocobo1/neg_loop_master
Fix potential negative loop bound
2015-06-13 21:03:41 +03:00
sledgehammer999
4d848e99f0 Merge pull request #3004 from ngosang/cppcheck_fixes
Cppcheck: scope reduction & unused variables
2015-06-13 20:16:53 +03:00
sledgehammer999
157b1eadfa Merge pull request #3203 from glassez/unistd
Fix qbittorrent-nox compilation.
2015-06-13 09:33:44 +03:00
Vladimir Golovnev (Glassez)
5798fb959d Fix qbittorrent-nox compilation. 2015-06-13 09:20:16 +03:00
sledgehammer999
35e04a795d Merge pull request #3194 from glassez/save_path
Fix BitTorrent::TorrentHandle class.
2015-06-13 01:51:27 +03:00
sledgehammer999
e22f7570fe Merge pull request #3192 from who-me/patch-1
Update qBittorrent.appdata.xml (invalid tag)
2015-06-13 01:47:58 +03:00
sledgehammer999
93bbda851a Merge pull request #3188 from glassez/datetime
Fix time_t 0 special meaning.
2015-06-13 01:46:12 +03:00
sledgehammer999
2c34aa4ea2 Merge pull request #3179 from DoumanAsh/legittorrents_update
[search engine] Update Legit Torrent to remove sgmllib
2015-06-13 01:44:28 +03:00
sledgehammer999
4f5ce16dcb Merge pull request #3176 from DoumanAsh/py3_remove_cache
[search engine] Remove python3 cache during updateNova()
2015-06-13 01:38:58 +03:00
sledgehammer999
df2068d734 Merge pull request #3010 from ngosang/user-agent
Changes in User-Agents
2015-06-13 01:37:21 +03:00
DoumanAsh
033817f70b [search engine] Update Legit Torrent to remove sgmllib 2015-06-12 18:23:56 +03:00
Vladimir Golovnev (Glassez)
9c28977001 Fix adjustActualSavePath() when torrent is moving. 2015-06-12 15:37:52 +03:00
Vladimir Golovnev (Glassez)
a55a27508a Fix append .!qB extension when it disabled. 2015-06-12 15:35:20 +03:00
who-me
031d14e320 Update qBittorrent.appdata.xml
Usage of the <updatecontact/> breaks validation. The correct tag is <update_contact/> as per info on this page:
http://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-update_contact
2015-06-12 13:48:53 +03:00
Chocobo1
817b595222 Fix potential negative loop bound.
QTorrentHandle::num_files() could return -1 in these cases.
2015-06-12 17:09:22 +08:00
Vladimir Golovnev (Glassez)
56df8c2dd0 Fix time_t 0 special meaning.
Return null QDateTime object when converting from 0 time_t value.
2015-06-12 09:36:01 +03:00
ngosang
3715e8d2c8 Change default preferences 2015-06-12 02:09:01 +02:00
ngosang
ad2a18b3bc Changes in User-Agent 2015-06-12 01:30:01 +02:00
ngosang
3eb61cfe83 Cppcheck: scope reduction & unused variables 2015-06-12 01:16:21 +02:00
DoumanAsh
1222dab6f8 [search engine] Remove python3 cache during updateNova() 2015-06-12 01:30:35 +03:00
sledgehammer999
8897001567 Merge pull request #2844 from ngosang/search_version
[Search engine] Show the version of search engines
2015-06-12 01:20:23 +03:00
ngosang
930161a0dd [Search engine] Show the version of search engines 2015-06-11 23:37:50 +02:00
sledgehammer999
3aa0a845cd Merge pull request #2892 from glassez/bittorrent
Core classes redesign (Issue #2433).
2015-06-11 23:54:05 +03:00
sledgehammer999
cc8419d344 Fix python detection from reigstry when multiple versions are installed. Update fallback mechanism for newer versions. 2015-06-11 23:45:18 +03:00
sledgehammer999
f3dd93a42c Merge pull request #2832 from pmzqla/rss-liveupdate
Update matching RSS articles while editing rules
2015-06-11 22:56:31 +03:00
sledgehammer999
13da85e859 Merge pull request #3164 from ngosang/demonoid
[search engine] Add Demonoid search engine
2015-06-11 22:39:44 +03:00
ngosang
cd5f904b53 Minor fixes in search engines 2015-06-11 19:06:29 +02:00
ngosang
274cde0396 [search engine] Add Demonoid search engine 2015-06-11 18:24:18 +02:00
sledgehammer999
3d40834c57 Merge pull request #2550 from DoumanAsh/multiprocessor_search
[search engine] Replace threading with multiprocessing
2015-06-11 19:14:11 +03:00
DoumanAsh
920aefddde [search engine] Final enhancements. 2015-06-11 07:52:27 +03:00
DoumanAsh
7dafb384e9 [search engine] Cosmetic update TorrentReactor 2015-06-11 07:47:39 +03:00
DoumanAsh
2fc1487603 [search engine] re-factoring of code 2015-06-11 07:47:37 +03:00
DoumanAsh
d6d0f422f5 [search engine] engines update 2015-06-11 07:45:55 +03:00
DoumanAsh
bef8106d0f [search engine] Nova2 multiprocessing 2015-06-11 07:45:53 +03:00
sledgehammer999
e502ce38ec Merge pull request #2670 from DoumanAsh/safe_url_retrieve
[search engine] Exception free url_retrieve
2015-06-11 02:22:02 +03:00
Vladimir Golovnev (Glassez)
7d73bddfd2 Split some "header only" sources. 2015-06-10 10:58:20 +03:00
DoumanAsh
86a0eaf317 Exception free retrieve_url()
Set 2 second timeout and handle any possible connection error
Return empty string to engine in case of connection exception
2015-06-10 08:15:23 +03:00
Vladimir Golovnev (Glassez)
5f288d228d Fix coding style (Issue #2192). 2015-06-09 21:30:57 +03:00
Vladimir Golovnev (Glassez)
191cdc2849 Move utilities to core/utils folder.
Also move the names to Utils namespace.
2015-06-09 21:30:56 +03:00
Vladimir Golovnev (Glassez)
427688cb34 Remove unused sources. 2015-06-09 21:30:53 +03:00
Vladimir Golovnev (Glassez)
d16d1fdb3a Redesign main core classes. 2015-06-09 21:30:42 +03:00
sledgehammer999
832272bf3a Merge pull request #2672 from DoumanAsh/abort_search_on_exit
Aborting search engine process during closure. Close #2671
2015-06-09 01:49:36 +03:00
sledgehammer999
d87cea1fb7 Merge pull request #2880 from Chocobo1/alluppercase
Use AllUppercase for label text
2015-06-08 01:41:01 +03:00
sledgehammer999
dabbc49c20 Merge pull request #2882 from pmzqla/openfile-enter
Allow to Open files from the properties pane by pressing "Enter"
2015-06-08 01:22:40 +03:00
sledgehammer999
9daf9e612b Merge pull request #2935 from Chocobo1/add_tray_menu
Add "Add link to torrent" menu in TrayIconMenu. Closes #2918.
2015-06-08 00:51:38 +03:00
sledgehammer999
46e2e5342b Merge pull request #2996 from Chocobo1/tray_icon
Enable to choose dark/light tray icons on all platforms.
2015-06-03 23:59:16 +03:00
sledgehammer999
c682d87a65 Merge pull request #2999 from LazyBui/master
Treating Alt Global Rate Limits Like Regular Global Rate Limits
2015-06-03 23:48:13 +03:00
sledgehammer999
101b0ee58e Merge pull request #3011 from ngosang/start_minimize
Fix Start Minimized checkbox in Options
2015-06-03 23:07:32 +03:00
Vladimir Golovnev (Glassez)
60c0939e05 Fix coding style (Issue #2192).
Also split filesystemwatcher.h into .h/.cpp files.
2015-06-03 22:11:44 +03:00
Vladimir Golovnev (Glassez)
d32bb52390 Don't add core to INCLUDEPATH. 2015-06-03 22:11:43 +03:00
Vladimir Golovnev (Glassez)
4b5e7e6168 Move network related code to core/net. 2015-06-03 22:11:41 +03:00
Vladimir Golovnev (Glassez)
3eeed813d6 Implement new download manager. 2015-06-03 22:11:40 +03:00
Vladimir Golovnev (Glassez)
f1bce0b8e0 Fix downloadthread.* coding style (Issue #2192). 2015-06-03 22:11:39 +03:00
Vladimir Golovnev (Glassez)
98dfb6302d Fix shutdownconfirm.* coding style (Issue #2192). 2015-06-03 22:11:38 +03:00
Vladimir Golovnev (Glassez)
d87a9bf7ec Move GUI-related sources into gui subdir. 2015-06-03 22:11:36 +03:00
sledgehammer999
2b7c47c789 Merge pull request #3092 from Chocobo1/focus_default
Change default focus button in various dialog, closes #3085
2015-06-03 21:35:17 +03:00
sledgehammer999
bafb189244 Merge pull request #3136 from Chocobo1/exit
Change option text "Confirmation on exit when torrents are active"
2015-06-03 21:05:00 +03:00
Chocobo1
ab91fb87ea Change option text "Confirmation on exit when torrents are active" 2015-06-03 13:25:36 +08:00
sledgehammer999
2ad10ea47e Merge pull request #3006 from ngosang/translate_search
Make strings translatable in search engine
2015-06-01 17:08:37 +03:00
sledgehammer999
fc28f261cf Merge pull request #2534 from ngosang/disable_chbox
Disable Auto piece size checkbox when creating a new torrent
2015-06-01 16:55:09 +03:00
sledgehammer999
a84518d69f Merge pull request #2542 from ngosang/search_tab
Change width of columns in search tab. Closes #764
2015-06-01 16:33:31 +03:00
sledgehammer999
17cba898e9 Merge pull request #3005 from ngosang/wasted
Web UI: Display wasted data with friendly units. Closes #2994
2015-06-01 16:03:59 +03:00
sledgehammer999
736f20538d Merge pull request #3040 from ngosang/webui_global_slot
Web UI: New config - Global maximum number of upload slots. Closes #2997
2015-06-01 15:57:44 +03:00
sledgehammer999
6cee7483ba Merge pull request #3041 from ngosang/webui_fix_torrentinfo
Web UI: Fix Max connections and Time active in transfer panel. Closes #2993
2015-06-01 15:26:50 +03:00
sledgehammer999
50a5e830ac Merge pull request #3086 from ngosang/webui_titlebar
Web UI: Changes in title bar, translatable strings and style
2015-06-01 15:21:57 +03:00
sledgehammer999
81b3517166 Merge pull request #3021 from ngosang/improve_torrentz
[search engine] Improve torrentz engine to return more results
2015-06-01 13:32:58 +03:00
sledgehammer999
14b5d15268 Merge pull request #3020 from ngosang/fix_piratebay
[search engine] Fix thepiratebay engine. Closes #3012
2015-06-01 13:29:59 +03:00
Chocobo1
e75de01809 Set default focus to no button in exit confirm box 2015-05-26 15:03:42 +08:00
Chocobo1
a29f2dcfaa Set default focus to ok button in add new torrent dlg 2015-05-24 15:12:07 +08:00
Chocobo1
2b2bc11d7d Set default focus to cancel button in delete confirm dlg, closes #3085 2015-05-24 15:11:37 +08:00
ngosang
7129ad47f4 Web UI: Minor changes in style 2015-05-23 22:18:52 +02:00
ngosang
dcdb319653 Web UI: Complete translatable strings 2015-05-23 20:35:25 +02:00
ngosang
c5ce99ebec Web UI: Changes in title bar 2015-05-23 19:20:04 +02:00
ngosang
e46c238f15 [search engine] Fix thepiratebay. Closes #3012 2015-05-20 08:01:41 +02:00
Vladimir Sinenko
56ee6dac08 Fixed sort order for datetime columns with empty values (closes #2988)
A small fix belonging to #2531.
During the sorting empty QDateTime values are shuffled around due to
unstable sort in QSortFilterProxyModel (see #2526 and #2158), causing
the transfer list items to constantly change order.

Fixed by using an already existing correct comparison (with a torrent
hash fallback).
2015-05-19 22:10:57 +06:00
LazyBui
23ec562375 Making alternate download/upload configuration behave like global download/upload configuration so as to allow boundless down/up 2015-05-17 12:58:29 -05:00
sledgehammer999
2c1d76c87f Merge pull request #3027 from ngosang/fix_webui_all
Web UI: Fix resumeAll and pauseAll. Closes #3016
2015-05-17 18:44:11 +03:00
sledgehammer999
d222dece92 Merge pull request #3039 from ngosang/webui_relative_urls
Web UI: Fix login and logout relative URLs. Closes #3038
2015-05-17 18:43:38 +03:00
ngosang
8b06f72a94 Web UI: Fix Max connections and Time active in transfer information 2015-05-17 15:47:37 +02:00
ngosang
2e05777dc5 Web UI: New config - Global maximum number of upload slots 2015-05-17 14:40:34 +02:00
ngosang
dd71355e8a Web UI: Fix login and logout relative URLs 2015-05-17 13:48:06 +02:00
sledgehammer999
c92eb1b17d Merge pull request #3019 from Chocobo1/icons_path
Fix wrong path in .ui files
2015-05-17 12:37:03 +03:00
ngosang
a90ec4cce7 Web UI: Fix resumeAll and pauseAll. Closes #3016 2015-05-15 22:49:03 +02:00
Chocobo1
f1c2eae264 Fix wrong path for icons.qrc 2015-05-16 01:08:45 +08:00
ngosang
28fcbe9bc5 [search engine] Improve torrentz engine to return more results 2015-05-15 18:34:28 +02:00
ngosang
b18138bad0 Change width of columns in search tab. Closes #764 2015-05-15 14:25:51 +02:00
ngosang
0ef728d385 Fix Start Minimized checkbox in Options 2015-05-14 21:48:09 +02:00
ngosang
bd6afc2d86 Make strings translatable in seach engine 2015-05-14 14:39:30 +02:00
ngosang
de3c84bd0b Web UI: Display wasted data with friendly units. Closes #2994 2015-05-14 13:35:48 +02:00
sledgehammer999
e788445fe2 Bump to 3.3.0alpha 2015-05-13 23:33:22 +03:00
sledgehammer999
88237fbd1e Update Copyright year. 2015-05-13 23:23:53 +03:00
sledgehammer999
6fba6796b8 Fix typo in configure script. 2015-05-13 23:04:12 +03:00
sledgehammer999
2a2cb313cf Merge pull request #2990 from LazyBui/master
Removing the confusion caused by moving GeoIP code/.dat
2015-05-13 22:58:32 +03:00
Chocobo1
30f21259f8 Enable to choose dark/light tray icons on all platforms. 2015-05-13 21:50:15 +08:00
LazyBui
be62c34e46 Removing the confusion caused by moving GeoIP code/.dat to a different directory 2015-05-13 00:15:10 -05:00
sledgehammer999
e2ac4ebf9d Merge pull request #2977 from pmzqla/configure-whitespace
configure: don't fail when $CPPFLAGS starts with a white space
2015-05-11 19:03:57 +03:00
Gabriele
b67a10c4a1 configure: don't fail when $CPPFLAGS starts with a white space 2015-05-11 13:49:20 +02:00
sledgehammer999
fc52248bf7 Correctly detect FreeBSD when configuring.
Thanks to yurivict for helping.
Closes #2962.
2015-05-11 00:29:46 +03:00
sledgehammer999
4725022f7e Fix configure typo. 2015-05-11 00:29:42 +03:00
sledgehammer999
a3574d3e28 Merge pull request #2846 from Noctem/fixVariableNames
Fix variable names
2015-05-10 17:53:26 +03:00
Chocobo1
04300c11c3 Hookup to Coverity Scan, Closes #2601 2015-05-10 15:07:36 +08:00
Chocobo1
1d6263385b Use AllUppercase for label text 2015-05-10 14:13:25 +08:00
DoumanAsh
62776df9e1 Aborting search engine process during closure. Close #2671 2015-05-05 19:29:13 +03:00
Chocobo1
72c5bce6a4 Add "Add link to torrent" menu in TrayIconMenu. Closes #2918. 2015-05-04 00:59:00 +08:00
Gabriele
41fa59f164 Allow to Open files from the properties pane by pressing "Enter"
Allow to open only one file at a time and ignore keypresses when
multiple items are selected.
2015-04-16 18:50:11 +02:00
David Christenson
307ae459f2 Fix variable names
Change undeclared identifiers `running_` and `paramsQueue_` to their
proper names.
2015-04-07 20:49:45 -06:00
Gabriele
027a08c92e Update matching RSS articles while editing rules
Save the rules as soon as they are edited so that the matching
articles tree is immediately updated.

Closes #2829.
2015-04-04 19:21:33 +02:00
Chocobo1
1037d7f335 Webui: add delay in shutdown command in order to send out response msg 2015-03-30 13:50:53 +08:00
Chocobo1
3e6706a371 Don't close downloadFromURL dialog when showing empty url warning 2015-03-09 15:34:53 +08:00
Gabriele
48c1bd58dd Allow to copy all the trackers with a keyboard shortcut
If multiple trackers are selected, Ctrl+C will copy only one of them
while the context menu will copy all of them. Fix this inconsistency.

Closes #2675.
2015-03-08 12:50:22 +01:00
Artem S. Tashkinov
4f8155e612 Let's check if the torrent file can actually be opened before passing it to libtorrent
If we don't have enough permissions, libtorrent will spew a pretty useless, irrelevant and almost wrong message: "Failed to load the torrent: torrent file is not a dictionary"
2015-03-03 00:22:45 +05:00
Mayank Asthana
cf89d892c6 Download-from-URL textbox changes focus on tab key 2015-03-03 00:27:16 +05:30
ngosang
d206b00a88 Disable Auto piece size when creating a new torrent 2015-02-11 00:53:42 +01:00
1657 changed files with 607320 additions and 230409 deletions

57
.appveyor.yml Normal file
View File

@@ -0,0 +1,57 @@
version: '{branch}-{build}'
# Do not build on tags (GitHub only)
skip_tags: true
image: Visual Studio 2017
branches:
except: # blacklist
- coverity_scan
environment:
REPO_DIR: &REPO_DIR c:\qbittorrent
CACHE_DIR: &CACHE_DIR c:\qbt_cache
QBT_VER_URL: https://builds.shiki.hu/appveyor/version
QBT_LIB_URL: https://builds.shiki.hu/appveyor/qbt_libraries.7z
# project directory
clone_folder: *REPO_DIR
# cache size should < 100MB (after compressing with fastest option):
# see: https://www.appveyor.com/docs/build-cache#save-update-cache-before-build-finishes
cache:
- *CACHE_DIR
clone_depth: 50
install:
# check if library needs update
- appveyor DownloadFile "%QBT_VER_URL%" -FileName "c:\version_new" && SET /P newVersion=<"c:\version_new"
- IF EXIST "%CACHE_DIR%\version" (SET /P oldVersion=<"%CACHE_DIR%\version")
- IF NOT EXIST "%CACHE_DIR%\version" (SET updateCache=1)
- IF NOT "%oldVersion%" == "%newVersion%" (SET updateCache=1)
# update library
- IF "%updateCache%" == "1" (ECHO "--- Will redownload libraries ---" &&
RMDIR /S /Q "%CACHE_DIR%" & MKDIR "%CACHE_DIR%" &&
appveyor DownloadFile "%QBT_LIB_URL%" -FileName "c:\qbt_lib.7z" && 7z x "c:\qbt_lib.7z" -o"%CACHE_DIR%" > nul &&
COPY "c:\version_new" "%CACHE_DIR%\version")
# Qt stay compressed in cache
- 7z x "%CACHE_DIR%\qt5_32.7z" -o"c:\qbt" > nul
before_build:
# setup env
- CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- SET PATH=%PATH%;c:\qbt\qt5_32\bin;%CACHE_DIR%\jom;
# setup project
- COPY /Y "%CACHE_DIR%\conf.pri" "%REPO_DIR%"
# workarounds
- MKLINK /J "c:\qbt\base" "%CACHE_DIR%\base"
build_script:
- cd "%REPO_DIR%"
- qmake qbittorrent.pro && cd src && qmake src.pro
- jom -j2 -f Makefile.Release
test: off

12
.editorconfig Normal file
View File

@@ -0,0 +1,12 @@
# EditorConfig is awesome: http://EditorConfig.org
root = true
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
[**.yml]
indent_size = 2

20
.github/ISSUE_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,20 @@
**Please provide the following information**
### qBittorrent version and Operating System
(type here)
### If on linux, libtorrent and Qt version
(type here)
### What is the problem
(type here)
### What is the expected behavior
(type here)
### Steps to reproduce
(type here)
### Extra info(if any)
(type here)

14
.gitignore vendored
View File

@@ -2,24 +2,36 @@ src/gui/geoip/GeoIP.dat
src/gui/geoip/GeoIP.dat.gz
src/qbittorrent
src/qbittorrent-nox
src/release
src/debug
qbittorrent.pro.user*
conf.pri
Makefile
Makefile*
*.pyc
*.log
# Compiled object files
*.o
*.pdb
*.exe
# Generated MOC, resource and UI files
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
*.moc
src/lang/qbittorrent_*.qm
src/webui/www/translations/webui_*.qm
.DS_Store
.qmake.stash
src/qbittorrent.app
*.dmg
#Autotools junk
aclocal.m4
autom4te.cache/*
config.status
src/icons/qbt-theme/build-icons/node_modules/
src/icons/skin/build-icons/node_modules/
src/icons/skin/build-icons/icons/*.png

View File

@@ -1,16 +1,26 @@
language:
- cpp
language: cpp
os:
- linux
- osx
env:
# use libtorrent 0.15.10
# uncomment when Travis doesn't use Ubuntu 12.04 LTS, which has libtorrent 0.15.10 as package
#- lt_source=from_dist gui=true
#- lt_source=from_dist gui=false
# use libtorrent 0.16.X from RC_0_16 svn branch
- lt_source=from_svnRC_0_16 gui=true
- lt_source=from_svnRC_0_16 gui=false
- lt_source=from_svnRC_1_0 gui=true
- lt_source=from_svnRC_1_0 gui=false
matrix:
# Uncomment when Travis upgraded "Ubuntu 12.04 LTS" to a newer version whose repo will have a more up-to-date libtorrent package
#- lt_branch=dist gui=true
#- lt_branch=dist gui=false
- lt_branch=RC_1_0 gui=true build_system=cmake
- lt_branch=RC_1_0 gui=false build_system=cmake
- lt_branch=RC_1_0 gui=true build_system=qmake
- lt_branch=RC_1_0 gui=false build_system=qmake
global:
- secure: "OI9CUjj4lTb0HwwIZU5PbECU3hLlAL6KC8KsbwohG8/O3j5fLcnmDsK4Ad9us5cC39sS11Jcd1kDP2qRcCuST/glVNhLkcjKkiQerOfd5nQ/qL4JYfz/1mfP5mdpz9jHKzpLUIG+TXkbSTjP6VVmsb5KPT+3pKEdRFZB+Pu9+J8="
- coverity_branch: coverity_scan
matrix:
allow_failures:
- env: lt_branch=RC_1_0 gui=true build_system=cmake
- env: lt_branch=RC_1_0 gui=false build_system=cmake
branches:
except:
@@ -20,41 +30,158 @@ branches:
notifications:
email:
on_success: change
on_failure: change
on_failure: change
cache:
ccache: true
directories:
- $HOME/hombebrew_cache
# opt-in Ubuntu Trusty
dist: trusty
# container-based builds
sudo: false
addons:
coverity_scan:
project:
name: "qbittorrent/qBittorrent"
description: "Build submitted via Travis CI"
build_command_prepend: "./bootstrap.sh && ./configure $qbtconf"
build_command: make
branch_pattern: $coverity_branch
notification_email: sledgehammer999@qbittorrent.org
apt:
sources:
# sources list: https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
- ubuntu-toolchain-r-test
#- boost-latest
- sourceline: 'ppa:qbittorrent-team/qbittorrent-stable'
- sourceline: 'ppa:beineri/opt-qt551-trusty'
- sourceline: 'ppa:adrozdoff/cmake'
packages:
# packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
- [autoconf, automake, colormake]
- [cmake, ninja-build]
- libssl-dev
- [libboost-dev, libboost-system-dev]
- libtorrent-rasterbar-dev
- [qt55base, qt55svg, qt55tools]
- [gcc-6, g++-6]
before_install:
# only allow specific build for coverity scan, others will stop
- if [ "$TRAVIS_BRANCH" = "$coverity_branch" ] && ! [ "$TRAVIS_OS_NAME" = "linux" -a "$lt_branch" = "RC_1_0" -a "$gui" = true -a "$build_system" = "qmake" ]; then exit ; fi
- shopt -s expand_aliases
- alias sudo="sudo "
# Using nprocs/2 sometimes may fail (gcc is killed by system), just use two threads
- alias make="colormake -j2 "
- alias make="colormake -j3" # Using nprocs/2 sometimes may fail (gcc is killed by system)
- qbt_path="$HOME/qbt_install"
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
qbtconf="$qbtconf --prefix="$qbt_path" PKG_CONFIG_PATH=/opt/qt55/lib/pkgconfig:$PKG_CONFIG_PATH"
else
qbtconf="$qbtconf --prefix="$qbt_path""
fi
# Also setup a virtual display for after_success target when gui == true
- if ! $gui; then qbtconf="$qbtconf --disable-gui"; else export "DISPLAY=:99.0" && /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16 ; fi
- qbtconf="$qbtconf --with-qt4"
- ltconf=" --with-libgeoip=system"
# options for specific branches
- if [ "$gui" = false ]; then qbtconf="$qbtconf --disable-gui" ; fi
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
# setup virtual display for after_success target
if [ "$gui" = true ]; then export "DISPLAY=:99.0" && /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16 ; fi ;
- echo settings
- echo $lt_source
- echo $ltconf
# Qt 5
PATH=/opt/qt55/bin:${PATH}
if [ "$build_system" = "cmake" ]; then
COMPILER_VERSION=6
export CXX="${CXX}-${COMPILER_VERSION}" CC="${CC}-${COMPILER_VERSION}"
fi
fi
# print settings
- echo $lt_branch
- echo $gui
- echo $build_system
- echo $ltconf
- echo $qbtconf
- sudo apt-get -qq update
# Travis can stall during heavy load if these packages are installed in one step - split the command
- sudo apt-get -qq install debhelper autoconf automake colormake libssl-dev libgeoip-dev
# uncomment when Travis doesn't use Ubuntu 12.04 LTS, which has libtorrent 0.15.10 as package
#- sudo apt-get -qq install libboost-dev libboost-filesystem-dev libboost-system-dev
- sudo apt-get -qq install libboost-dev libboost-system-dev
- sudo apt-get -qq install libqt4-dev
install:
#- if [[ "$lt_source" == "from_dist" ]]; then sudo apt-get -qq install libtorrent-rasterbar-dev; fi
- if [[ "$lt_source" == "from_svnRC_0_16" ]]; then qbtconf="$qbtconf --with-libtorrent-rasterbar0.16" && cd .. && svn co svn://svn.code.sf.net/p/libtorrent/code/branches/RC_0_16 ./libtorrent && (cd libtorrent && ./autotool.sh && ./configure $ltconf && sudo make install) && sudo ldconfig /usr/local/lib && cd $TRAVIS_BUILD_DIR ; fi
- if [[ "$lt_source" == "from_svnRC_1_0" ]]; then cd .. && svn co svn://svn.code.sf.net/p/libtorrent/code/branches/RC_1_0 ./libtorrent && (cd libtorrent && ./autotool.sh && ./configure $ltconf && sudo make install) && sudo ldconfig /usr/local/lib && cd $TRAVIS_BUILD_DIR ; fi
#- |
#if [ "$TRAVIS_OS_NAME" = "linux" ]; then
# build libtorrent from source
#if [ "$lt_branch" != "dist" ]; then
#cd "$HOME" && pwd && git clone --depth 1 https://github.com/arvidn/libtorrent.git --branch $lt_branch
#cd libtorrent && ./autotool.sh && ./configure $ltconf && make install
#fi
#fi
- |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
# dependencies
brew update > /dev/null
brew outdated "pkg-config" || brew upgrade "pkg-config"
brew install colormake ccache zlib qt libtorrent-rasterbar
PATH="/usr/local/opt/ccache/libexec:$PATH"
brew link --force zlib qt
if [ "$build_system" = "cmake" ]; then
brew outdated cmake || brew upgrade cmake
brew install ninja
sudo ln -s /usr/local/opt/qt/mkspecs /usr/local/mkspecs
sudo ln -s /usr/local/opt/qt/plugins /usr/local/plugins
fi
MY_CMAKE_OPENSSL_HINT="-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/"
fi
- |
if [ "$TRAVIS_BRANCH" != "$coverity_branch" ]; then
export use_ccache=true
ccache -V && ccache --show-stats && ccache --zero-stats
fi
script:
- ./bootstrap.sh
- ./configure $qbtconf && sudo make install
- if [ "$TRAVIS_BRANCH" = "$coverity_branch" ]; then exit ; fi # skip usual build when running coverity scan
- |
cd "$TRAVIS_BUILD_DIR"
if [ "$build_system" = "cmake" ]; then
mkdir build
cd build
if [ "$gui" = "false" ]; then
DISABLE_GUI_OPTION="-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=ON"
fi
cmake $DISABLE_GUI_OPTION -DCMAKE_INSTALL_PREFIX="$qbt_path" "$MY_CMAKE_OPENSSL_HINT" \
-G "Ninja" -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE ..
BUILD_TOOL="ninja"
fi
if [ "$build_system" = "qmake" ]; then
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
# For some reason for RC_1_1 we need to also specify the OpenSSL compiler/linker flags
# Homebrew doesn't symlink OpenSSL for security reasons
./bootstrap.sh && ./configure $qbtconf CXXFLAGS="$(PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH" pkg-config --cflags openssl)" LDFLAGS="$(PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH" pkg-config --libs openssl)"
sed -i "" -e "s/^\(CC.*&&\).*$/\1 $CC/" src/Makefile # workaround for Qt & ccache: https://bugreports.qt.io/browse/QTBUG-31034
sed -i "" -e "s/^\(CXX.*&&\).*$/\1 $CXX/" src/Makefile
sed -i "" -e 's/^\(CXXFLAGS.*\)$/\1 -Wno-unused-local-typedefs -Wno-inconsistent-missing-override/' src/Makefile
else
./bootstrap.sh && ./configure $qbtconf
fi
BUILD_TOOL="make"
fi
- $BUILD_TOOL && $BUILD_TOOL install
after_success:
- if $gui ; then qbittorrent --version ; else qbittorrent-nox --version ; fi
- if [ "$gui" = true ]; then qbt_exe="qbittorrent" ; else qbt_exe="qbittorrent-nox" ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd "$qbt_path/bin" ; fi
- |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
if [ "$build_system" = "qmake" ]; then
macdeployqt "$TRAVIS_BUILD_DIR/src/$qbt_exe.app"
cd "$TRAVIS_BUILD_DIR/src/$qbt_exe.app/Contents/MacOS"
else
cd "$qbt_path/$qbt_exe.app/Contents/MacOS"
fi
fi
- ./$qbt_exe --version
after_script:
- if [ "$use_ccache" = true ]; then ccache --show-stats ; fi

View File

@@ -3,6 +3,7 @@ host = https://www.transifex.com
[qbittorrent.qbittorrent_master]
file_filter = src/lang/qbittorrent_<lang>.ts
lang_map = pt: pt_PT
source_file = src/lang/qbittorrent_en.ts
source_lang = en
type = QT
@@ -11,7 +12,7 @@ mode = developer
[qbittorrent.qbittorrentdesktop_master]
source_file = src/icons/qBittorrent.desktop
source_file = dist/unix/qbittorrent.desktop
source_lang = en
type = DESKTOP
minimum_perc = 23

92
5B7CC9A2.asc Normal file
View File

@@ -0,0 +1,92 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQINBFcNIIwBEACpGHvHW9ku7rwCSc2Dv4gh3MO3HPoP7Ba4RiEKwa7SCbPzc0DL
JypV4gNfnrpiO7bWVh5v+otbZTkQeNXWbx6hDUa2e5GCCuJifIu3PxpmMcNJFvvF
nk5QRf6dtz4Sm2x6joYprvsEUjyk+wHC016/0g7yhc/w0sclXlpKK+8Pl5DFrf5C
i5uljy3oJgl54D2yYAvxu3BrdTVKhLVYADUf1Fl3b5pV7VJwr+9wGuTqkORe1rpi
9NGWXUaTmKF8+XAJxlbYIUOZQpQ02clFxz0T7o/+m74N8tK9j7g8H2Q3QwtKi0q1
gI48LqI/EuZHIaRz/3pEVISlIpWzGqBL/G4I/UtzJLHyvySsqWXAKllKpk97XX77
XxFy3VL3fR7o4IohAj5fD083X8tuBIP2dxmHzxHTWveKBlEV6C4MdtVRow8ia3lu
RKLz6PF0hBBpebAP4MWAN8cy4ePBCe9BvyI2+3tPgqtlC2tEZLnRru6mtagPi4sj
Yo/iFkSQdTXrxeyrMJh161gsWl16JeAfz4Dq8IBoUA1hXIjfM9FcIv1rCY6Y8JwS
TtWMGYtzIcqE71wZxqnJuyFZkgC14NDTLgUwLf8XJOTWlMW9CY+tStjjw+sNoIPf
p7YQCmss4p5J8flnxH4xJ8ogOHxENidA+Z/J9mtGjxXIXHavPlO3IEg/DwARAQAB
tHFzbGVkZ2VoYW1tZXI5OTkgKFVzZWQgZm9yIHNpZ25pbmcgcUJpdHRvcnJlbnQg
c291cmNlIHRhcmJhbGxzIGFuZCBiaW5hcmllcyB2Mi4pIDxzbGVkZ2VoYW1tZXI5
OTlAcWJpdHRvcnJlbnQub3JnPokCNwQTAQgAIQUCVw0gjAIbAwULCQgHAgYVCAkK
CwIEFgIDAQIeAQIXgAAKCRBuSi0CW3zJojB2D/0bKlelRDQDtWzfRyxrdhe5pgAt
x1AsN/Cl7h8zlbAw38bL+jQ2/GmtzwzEqPfQc7IFnbeg0PZ58p7Hikj9h6JEhkyA
1qekkriclUmblEwDne3TjPixqgoBfNcDQu74dT08XpM8auFQo31/jJ104903o0O5
+CPOPn2KTdwpcSpwAVIj/3H96gZWegJDNpdByJUVbzYCt1erJ6I0ZURKhzU1VTJj
ZdEGB2YsvYpt5rsi41IYZZG33jMsPxSDDNJ/MiLXxkn08ZawNET6fnkEJJ37n9Pw
82lTZjFEFU+KTMT7dNjIejWCRgHVLgW8sO2lCPqMiFfWymD/N3sFpBO+UI86y5ds
hfGFAWcgSq9pVjuW4sbX3PntBnoNd+geDD1Ic4rP3jHRe5HuYGhtHO6xv/r7HeY5
HiShCTSSDBJqFmhfjrCo0nISKnzyxgO/rY9vFlwXsKkTyL7s53ONkjwK34WmGnya
tXdjBWShzAiTfF5hephfBSszmoBG2C8Jcu6P5n4buBY4RCsEa+6jE0R1vCtmpVwx
WrXOeN2kGYMpAkPK1L69Le0FofgUDKlaFMv7KRl4R367xNRukYrsKwVlontJ+Y72
X5t1BeRn8VSp0IzhssNXM8a4bTE8lvs889DOS2vgWEHIi0iyIesJYWPs4AKUw4rG
EDwWxtTS0a7Rfx3DxLRWc2xlZGdlaGFtbWVyOTk5IChVc2VkIGZvciBzaWduaW5n
IGdpdCBjb21taXRzL3RhZ3MvZXRjLikgPGhhbW1lcmVkOTk5QHFiaXR0b3JyZW50
Lm9yZz6JAh8EMAEIAAkFAlhie1ICHQAACgkQbkotAlt8yaILIhAAp25o1BbUG2Zk
At3cSrTFnZSCA7nEygbSUv1Uek33JZfY0Apw5qEM8lQCMZk+mhdrSQCYUJcQlruN
zJcJf4CH+VGE23xkI3Kf0nGp9Cjn/q6b1hLIPe5rimvw5pTAejFtebcYY/ZJIB8Z
H1ebuzfqBZ/9k7eYTarZ/ZsgG8YptB0RXBQWOMaSEKwdeo2m7HXHgK3blQiqbuJJ
uyPbid01Wus4AVN47/FKgDNswPs8irYZsu5yakgpi2KLycGDtSiN5XFHI4xbC0zM
srR7Cz0/fC+klhGcuxbw0V0It7UUIitgCcTPHXkukUU8i2+AGMyKa1HjchsXDdLg
DIs6KIurp2ve7znKOz7h1aX8cOBmB/QYeYAx9jRRkePMIRT8V1lRwfvJlJxx1+G3
e2gJLjqTN8a08KHHjdY/S0ZFERxSlmOym2uf/y6di1ipDPxo8xvDuS5kDbdZLC0t
XijlsH8ONK27KNuWhucG8zHzKQvnPw2qN06SZq4FjbSmAkkuYs56heLEXMzFr75k
SE8rUoQQ+ABG9gU46GEvKlZxqSwXgGnb1X6K7h8svjMh/NlAU358p8Sra4Ru5tz4
jUu9MoVEw5Lbjcrsnp6/4Kk1Q2ckBNt43nv8/+C7NsC3xi6BrOInuaKHZ4QsTuzJ
m1/A4zlKRnUi6T98DXfIYnNuV9NSmAWJAjkEEwEIACMFAlhiemMCGwMHCwkIBwMC
AQYVCAIJCgsEFgIDAQIeAQIXgAAKCRBuSi0CW3zJor6yD/9N2U0INx0nYpGkmvah
yVG/vw2S6hhKK+03AN+RrtddNRg4aBf/gmOvRWQhAmFnXOBA7fO09wgcljaV5tVb
MYyYZvHhK0o2/sli2p/M5N8ZxchRHypjxUSEyG9ZQ06QG5DVhh4HtM8nIN+UcwTV
C5QjyoWZvHf+tNroyFeh7zT+w4kX1VxgynTQr5LGdYsrVA3CFyT3zsBWV3dMae23
22CHOirsBBLwairHUsWW+BdThT3MkKYpTEV0jkH4OyAXhJYcS5IjjtKQ8UpZE9dw
f4saJ0TnXNe7goPRZtH7UjPwfVbtYK4y8QklWUTRxgoBxNwSC5X7Flg+3xXxE/VU
U4cehyRkH64i7MJDoFkqh5JtjkgIz+kuTTXb7xR0Wf+JXrGMybZTR8xth2TEMC20
1FT5L5+0vH1WRzL7bhlaU3EXyCnoH8sDvMEClZbibbew+rf7fC3tFU41ohUT0HDl
zlyfVjRvBHWMTgfpWKBV2m/qP941xTJ9VHxOlAB02XKUZYwFt07CpH+yjMOCOzA4
cTPBD3mGRuft0V0BJ8bA5bcTly/GBciRX0Y5oIeHZGgq2czb0sywSYT6mPoQMFNM
B+Cwr4pm90r1DMMfW518onF2itwyN/Id0FsWDhsLJHKluBJw52C3OnxCuToVutTm
xntqpPVv62LaeVeWQqxIieTJErRQc2xlZGdlaGFtbWVyXzk5OSAoVXNlZCBmb3Ig
c2lnbmluZyBnaXQgY29tbWl0cy90YWdzL2V0YykgPGhhbW1lcmVkOTk5QGdtYWls
LmNvbT6JAjkEEwEIACMFAlhifeICGwMHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIX
gAAKCRBuSi0CW3zJolcCD/9xPBNEkFtnhTW89th0TFZnB5oykCQjyefquvQs8KWT
C92/1VizHi4ZxDehHWP9IKVWT3ZJthj5ZXBSedyl1tHnwkyrUYBW9roQwtDWPncK
pXl/HsE6p3q6EIus+g6YJo4UvYachJFAZATZp1WDBPIswziHGzaL0tndFWZuVM8V
QD0tfPQsS1qCDVv6+B1JWZDnA1JzdSG/uzPhL95q/ff6JmNbfSAVedK2PyqYshnC
KWBx6Yna/0ColBuDFho8+bDuHPQcM35xyjPosVD7moXQiY4yMAJ+VzwEBaCFleI0
RBWw8/+qyoFqfIKwdq8G+7I9LjWpBiN2+uQBZ+OAvsMWyRShLopxt3JluPTtL6xb
Ca6dglOdlaOS/A6FK7u05k/8kQMDS5Jq2/rpfTPRl1/weCaJZgfRIBosk1Mon/pR
p1zd0abM4t7BcGQpwSkKAmqlKCrWf886EFQT0CJTBo8q7pzgpVraWWPVsmAOdkfU
YcKBgz1A2uMSAxypkSzaDZkIVj6I7gwiGk7IMYx1OK7Ev46h/x4Z7kgT0y3DYYOq
ggVEKQ+15Krn7bZ35s8vbZdfnVKPSXdCC8jkIMBmGmRX6cgZZ3OXZlrrHht5icgJ
5Z2d1M4JUoEZVUr2xNZkkaMk01NAIpGgKvIS6yHuj6vE4GMJ+A/qEW6J60/3YHRe
0bkCDQRXDSCMARAAqMIVJizEJp205c546IN75xeYiFszNXcs3768IY8bOoWj+rTw
t2wIwtL/3O5K2dG79CSt2H5o6BPKmq43tOO60YW3Yk3m9BB/gnAVqk0QOPr5O8+y
eBzdElU8CZh6y6zZMWugSkNmTDm6jZzPhgNjcjrit/dl9+0DGqJQcqoD8WzEWNcW
rMHVz9cDewnLSVkwR758mZMaIiL7R10MZ++tNrC0j69UINqx+9z1r1J07+NNnxqS
TxVRcbjPYtM9E+tUiVFS2HPWN9ShVDkBAEdoWh90qzRaMiFl2NGNGOD1iHx/xr06
RMeGEEXt2vhSlhfMW2YQW+UD2jzlFbARf53v39MUKKscGuIpBhxGw3JCq4l6qLW/
bDkgnoXlOhZDmhQm6OpsjAyk9IEdd3ponSc7yYD3mUkJKR9eTaALD5t6TQGyNHak
b4UfoXtE2RR78cbPlLIwag7eQ8GsNA+dfjowmOZdojx3ROsHZdGQwb0YFLjuKAus
A3TY+lCfbS6kzE2iI2DuaW+3dICcLrYuibbVb0CBNHyD+8KEtczdur/wm0lhqyVJ
kGyZKZT8C2cPxywKgy1Rn6F8Yfmj0Lna3nvtaZu0ZUS4/8Lit5PcOso1lSmYBuD6
yq+GEAMCnUmn1Pm8eZRMlxxQuTPvyJKQrRDhbtAAr472MSnoJKlS4SfaUF0AEQEA
AYkCHwQYAQgACQUCVw0gjAIbDAAKCRBuSi0CW3zJomZDD/9IJmzd5hiEzntlp84p
yIJcfyIRe4KImvldAy6T02OSIbF1HzCNnwmqIPob6MOdMZ+KNwMK0htRkrRr/zM0
34+lBiWKZt+tVYHu49ioTYXEjAc5qDJE09Sq7HceQnhgE48f1n54XGT5G2w5gw+/
a8Qn1SceE44VwXafL3E1gKaOrrsb1UH/AJhp+W4VMu+7bLXu7h1tN6v2PhvCYvBt
3zyy8Q8xfJ2x7/D1lbF8ATJAiZ/km9x5bRm7OGRliVYaUe1nyR42fZOj3CBmAR0+
lZLgjriqdMXrs+qlBbrmAhkn0XPQXAeaPifKoKIGDAUWIsqDHqM7imMGT+MR9APf
Sw8M4enOJWL+HnKpVBEARCEDpaFpJ3u7QRucFybpEhvIymoNftyw+urId2Eg2K33
NypeZo3M1K2LC65f2Ta7f/sZcIDUTbgW+m334fgVl1KptDA5DX3U9lTci7mi4uPu
AFtbWrB1di4jYrxXYuzFm5g4xTb0Hw3kYIB6WXF+I7i0JaGOTHxPC5X5lIAZrYrk
xh+1n1Y1CY+TC8JcTzwORJIbFFm9tD/BHXa4849k4DVvFYCZkhq+/56FKZfoVByh
B+x+2GaMlsBm1uPniO4lAakFPpIi0kaap4UVayQ/7ak+BhscAIHZUy6NtgZkuvW3
xdpwp07LYo2ilhMI8RnzmtoRmg==
=UBeB
-----END PGP PUBLIC KEY BLOCK-----

21
AUTHORS
View File

@@ -34,6 +34,14 @@ Code from other projects:
license: GPLv2/3
Images Authors:
* files: src/icons/skin/qbittorrent-tray.svg (and related pngs)
copyright: Provided by HVS <hvs linuxmail org> (raster first proposal) and Atif Afzal(@atfzl github) <atif5801@gmail.com> (vectorized and modified)
license: GPLv2+
* files: src/qbittorrent_file.ico src/icons/fileicon.svg
copyright: 'uknown.svg' (LGPLv3+) from Oxygen Icon Theme was used as base which was slightly modified and 'qbittorrent-tray.svg' (GPLv2+) was overlayed above it.
license: GPLv3+
* files: src/icons/*.png
copyright: Gnome Icon Theme
license: GPLv2
@@ -44,10 +52,10 @@ Images Authors:
license: LGPL
url: http://www.oxygen-icons.org
* files: src/icons/flags/*.png
copyright: Mark James <mjames@gmail.com>
license: Public Domain
url: http://www.famfamfam.com
* files: src/icons/flags/*.svg
copyright: lipis/flag-icon-css
license: MIT
url: https://github.com/lipis/flag-icon-css/
* files: src/icons/skin/*.png
files: src/menuicons/YYxYY/*.png
@@ -79,6 +87,11 @@ Images Authors:
* file: src/icons/oxygen/checked.png
copyright: Victor Buinsky <allok.victor@gmail.com>
* file: src/icons/skin/ratio.png
copyright: Fatcow Web Hosting
license: Creative Commons Attribution 3.0 License
url: http://www.fatcow.com/free-icons
Translations authors:
* files: src/lang/*.ts

54
CMakeLists.txt Normal file
View File

@@ -0,0 +1,54 @@
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
message(AUTHOR_WARNING "If the build fails, please try the autotools/qmake method.")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
include(FunctionReadVersion)
read_version("${CMAKE_CURRENT_SOURCE_DIR}/version.pri" VER_MAJOR VER_MINOR VER_BUGFIX VER_BUILD VER_STATUS)
# message(STATUS "Project version is: ${VER_MAJOR}.${VER_MINOR}.${VER_BUGFIX}.${VER_BUILD} (${VER_STATUS})")
project(qBittorrent VERSION ${VER_MAJOR}.${VER_MINOR}.${VER_BUGFIX}.${VER_BUILD})
set(PROJECT_VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_BUGFIX}")
if (NOT VER_BUILD EQUAL 0)
set(PROJECT_VERSION "${PROJECT_VERSION}.${VER_BUILD}")
endif()
set(PROJECT_VERSION "${PROJECT_VERSION}${VER_STATUS}")
add_definitions(-DQBT_VERSION_MAJOR=${VER_MAJOR})
add_definitions(-DQBT_VERSION_MINOR=${VER_MINOR})
add_definitions(-DQBT_VERSION_BUGFIX=${VER_BUGFIX})
add_definitions(-DQBT_VERSION_BUILD=${VER_BUILD})
add_definitions(-DQBT_VERSION="v${PROJECT_VERSION}")
add_definitions(-DQBT_VERSION_2="${PROJECT_VERSION}")
include(GNUInstallDirs)
include(FeatureSummary)
# version requirements
set(requiredBoostVersion 1.35)
set(requiredQtVersion 5.5.1)
if(WIN32)
include(winconf)
endif(WIN32)
# we need options here, at the top level, because they are used not only in "src" subdir, but in the "dist" dir too
include(CompileFeature)
optional_compile_definitions(COUNTRIES_RESOLUTION FEATURE DESCRIPTION "Enable resolving peers IP addresses to countries"
DEFAULT ON DISABLED DISABLE_COUNTRIES_RESOLUTION)
optional_compile_definitions(STACKTRACE FEATURE DESCRIPTION "Enable stacktraces"
DEFAULT ON ENABLED STACKTRACE)
optional_compile_definitions(WEBUI FEATURE DESCRIPTION "Enables built-in HTTP server for headless use"
DEFAULT ON DISABLED DISABLE_WEBUI)
add_subdirectory(src)
add_subdirectory(dist)
feature_summary(DESCRIPTION "\nConfiguration results:" WHAT ALL)

File diff suppressed because it is too large Load Diff

221
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,221 @@
# How to contribute to qBittorrent
There are three main ways to contribute to the project.
Read the respective section to find out more.
### Table Of Contents
* **[Bug reporting etiquette](#bug-reporting-etiquette)**
* **[Submitting an issue/bug report](#submitting-an-issuebug-report)**
* [What is an actual bug report?](#what-is-an-actual-bug-report)
* [Before submitting a bug report](#before-submitting-a-bug-report)
* [Steps to ensure a good bug report](#steps-to-ensure-a-good-bug-report)
* **[Suggesting enhancements/feature requests](#suggesting-enhancementsfeature-requests)**
* [Before submitting an enhancement/feature request](#before-submitting-an-enhancementfeature-request)
* [Steps to ensure a good enhancement/feature suggestion](#steps-to-ensure-a-good-enhancementfeature-suggestion)
* **[Opening a pull request](#opening-a-pull-request)**
* [Must read](#must-read)
* [Good to know](#good-to-know)
# Bug reporting etiquette
* Issues, pull requests, and comments must always be in **English.**
* This project is supported by volunteers, do not expect "customer support"-style interaction.
* **Be patient.** The development team is small and resource limited. Developers and contributors take from their free time to analyze the problem and fix the issue. :clock3:
* Harsh words or threats won't help your situation. What's worse, your complain will (very likely) be **ignored.** :fearful:
# Submitting an issue/bug report
This section guides you through submitting an issue/bug report for qBittorrent.
Following these guidelines helps maintainers and the community understand your report, reproduce the behavior, and find related reports.
Make sure to follow these rules carefully when submitting a bug report. Failure to do so will result in the issue being closed.
## What is an actual bug report?
Developers and contributors are not supposed to deal with issues for which little to no investigation to find the actual cause of a purported issue was made by the reporter.
Positive contributions are those which are reported with efforts to find the actual cause of an issue, or at the very least efforts were made to narrow it as much as possible.
Requiring people to investigate as much as possible before opening an issue will more than likely avoid burdening the project with invalid issues or issues unrelated to qBittorrent.
The following are _not_ bug reports. **Check the [wiki][wiki-url], [forum][forum-url] or other places for help and support for issues like these**:
- Explanation of qBittorrent options (see [wiki][wiki-url]).
- Help with WebUI setup.
- Help with embedded tracker setup.
- Help about BitTorrent in general.
- Issues with specific search plugins.
- Asking for specific builds of qBittorrent other than the current one. You can install older releases at your own risk or for regression testing purposes. Previous Windows and macOS builds are available [here][builds-url].
- If you want older Linux builds, you will have to compile them yourself from the corresponding commits, or ask someone on the [forum][forum-url] to do it for you.
- Possibly others. Read on and use common sense.
The issue tracker is for provable issues only: You will have to make the case that the issue is really with qBittorrent and not something else on your side.
To make a case means to provide detailed steps so that anybody can reproduce the issue.
Be sure to rule out that the issue is not caused by something specific on your side.
Issue reports for bugs that apparently aren't easily reproducible or that you can't figure out what triggers it even though you tried are OK.
Any issue opened without effort to provide the required details for developers, contributors or anybody else to reproduce the problem will be closed as invalid.
For example:
- Crash reports with just a stack trace.
- Speculated performance issues that do not come with actual profiling data + analysis supporting the claim.
## Before submitting a bug report
- **Do some basic troubleshooting (examples)**:
- Restart qBittorrent.
- Restart your PC.
- Update your OS (e.g. Windows updates).
- Update your network card drivers.
- Fully reinstall qBittorrent.
- etc...
- Make sure the problem is not caused by anti-virus or other program messing with your files.
- Check if you can reproduce the problem in the latest version of qBittorrent.
- **Check [forum][forum-url] and [wiki][wiki-url].** You might be able to find the cause of the problem and fix things yourself.
- **Check if the issue exists already in the issue tracker.**
- If it does and the issue is still open, add a comment to the existing issue instead of opening a new one.
- If you find a Closed issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.
- If the issue is with the search functionality:
- **Make sure you have [`python`][python-url] installed correctly (remember the search functionality requires a working python installation).**
- Make sure it is in fact a problem with the search functionality itself, and not a problem with the plugins. If something does not work properly with the search functionality, the first step is to rule out search plugin-related issues.
- For search plugin issues, report on the respective search plugin support page, or at [qbittorrent/search-plugins][search-plugins-url].
## Steps to ensure a good bug report
**Follow these guidelines** in order to provide as much useful information as possible right away. Not all of them are applicable to all issues, but you are expected to follow most of these steps (use common sense).
Otherwise, we've noticed that a lot of your time (and the developers') gets thrown away on exchanging back and forth to get this information.
* Use a **clear and descriptive title** for the issue to identify the problem.
* Post only **one specific issue per submission.**
* **Fill out the issue template properly.**
- **Make sure you are using qBittorrent on a supported platform.** Do not submit issues which can only be reproduced on beta/unsupported releases of supported operating systems (e.g. Windows 10 Insider, Ubuntu 12.04 LTS, etc).
These are unstable/unsupported platforms, and in all likelihood, whatever the issue is, it is not related to qBittorrent.
* **Specify the OS you're using, its version and architecture.**
* Examples: Windows 8.1 32-bit, Linux Mint 17.1 64-bit, Windows 10 Fall creators Update 64-bit, etc.
* **Report only if you run into the issue with an official stable release, a beta release, or with the most recent upstream changes (in this last case specify the specific commit you are on).** (beta testing is encouraged :smile:). We do not provide support for bugs on unofficial Windows builds.
* **Specify the version of qBittorrent** you are using, as well as its **architecture** (x86 or x64) and its **libraries' versions** (Help -> About -> Libraries).
* Specify **how you installed**:
- Linux: either from the PPA, your distribution's repositories, or compiled from source, or even possibly third-party repositories.
- Windows: either from the installer, or compiled from source, or even possibly third-party repositories.
- macOS: either from the installer, or compiled from source, or even possibly third-party repositories.
* **Describe the exact steps which reproduce the problem in as many details as possible.**
- For example, start by explaining how you started qBittorrent, e.g. was it via the terminal? Desktop icon? Did you start it as root or normal user?
- **When listing steps, don't just say what you did, but explain how you did it.**
- For example, if you added a torrent for download, did you do so via a `.torrent` file or via a magnet link? If it was with a torrent file did you do so by dragging the torrent file from the file manager to the transfer list, or did you use the "Add Torrent File" in the Top Bar?
- Describe the behavior you observed after following the steps and point out what exactly is the problem with that behavior; this is what we'll be looking for after executing the steps.
* **Explain which behavior you expected to see instead** and why.
* Use **screenshots/animated GIFs to help describe the issue** whenever appropriate [(How?)][attachments-howto-url].
* If the problem wasn't triggered by a specific action, describe what you were doing before the problem happened.
* **If you are reporting that qBittorrent crashes**, include the stack trace in the report; include it in a code block, a file attachment, or put it in a gist and provide link to that gist.
* **For performance-related issues**, include as much profiling data as you can (resource usage graphs, etc).
* Paste the **qBittorrent log** (or put the contents of the log in a gist and provide a link to the gist). The log can be viewed in the GUI (View -> Log -> tick all boxes). If you can't do that, the file is at:
- Linux: `~/.local/share/data/qBittorrent/logs/qBittorrent.log`
- Windows: `%LocalAppData%\qBittorrent\logs`
- macOS: `~/Library/Application Support/qBittorrent/qBittorrent.log`
* **Do NOT post comments like "+1" or "me too!"** without providing new relevant info on the issue. Using the built-in reactions is OK though. Remember that you can use the "subscribe" button to receive notifications of that report without having to comment first.
* If there seems to be an **issue with specific torrent files/magnet links**:
- Don't post private `.torrent` files/magnet links, or ones that point to copyrighted content. If you are willing, offer to email a link or the `.torrent` file itself to whoever developer is debugging it and requests it.
- Make sure you can't reproduce the problem with another client, to rule out the possibility that the issue is with the `.torrent` file/magnet link itself.
* A screenshot, transcription or file upload of any of **qBittorrent's preferences that differ from the defaults.** Please include everything different from the defaults whether or not it seems relevant to your issue.
* **Attachment rules**:
- Short logs and error messages can be pasted as quotes/code whenever small enough; otherwise make a gist with the contents and post the link to the gist.
- Avoid linking/attaching impractical file formats such as PDFs/Word documents with images. If you want to post an image, just post the image.
### Provide more context by answering these questions (if applicable):
- Can you **reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens (e.g. only happens with extremely large torrents/only happens after qBittorrent is open for more than 2 days/etc...)
- Did the problem start happening recently (e.g. after updating to a new version of qBittorrent) or was this always a problem?
- If the problem started happening recently, can you reproduce the problem in an older version of qBittorrent?
- Are you saving files locally (in a disk in your machine), or are you saving them remotely (e.g. network drives)?
- Are you using qBittorrent with multiple monitors? If so, can you reproduce the problem when you use a single monitor?
Good read: [How to Report Bugs Effectively][howto-report-bugs-url]
# Suggesting enhancements/feature requests
This section guides you through submitting an enhancement suggestion for qBittorrent, including completely new features and minor improvements to existing functionality.
Following these guidelines helps maintainers and the community understand your suggestion and find related suggestions.
## Before submitting an enhancement/feature request
* Check the [wiki][wiki-url] and [forum][forum-url] for tips — you might discover that the enhancement is already available.
* Most importantly, check if you're using the latest version of qBittorrent and if you can get the desired behavior by changing qBittorrent's settings.
* Check in the [releases][releases-url] page or on the [forum][forum-url], see if there's already a alpha/beta version with that enhancement.
* Perform a cursory search to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
## Steps to ensure a good enhancement/feature suggestion
- Specify which version of qBittorrent you're using.
- Specify the name and version of the OS you're using.
- Provide a step-by-step description of the suggested enhancement in as many details as possible.
- Describe the current behavior and explain which behavior you expected to see instead and why.
- Include screenshots and animated GIFs which help you demonstrate the steps or point out the part of qBittorrent which the suggestion is related to.
- If this enhancement exists in other BitTorrent clients, list those clients.
# Opening a pull request
### Must read
* Read our [**coding guidelines**][coding-guidelines-url]. There are some scripts to help you: [uncrustify script][uncrustify-script-url], [astyle script][astyle-script-url], [(related thread)][coding-guidelines-thread-url].
* Keep the title **short** and provide a **clear** description about what your pull request does.
* Provide **screenshots** for UI related changes.
* Keep your git commit history **clean** and **precise.** Refer to the section about "Git commit messages" in the [**coding guidelines**][coding-guidelines-url].
* If your commit fixes a reported issue (for example #4134), add the following message to the commit `Closes #4134.`. Example [here][commit-message-fix-issue-example-url].
### Good to know
* **Search** pull request history! Others might have already implemented your idea and it is waiting to be merged (or got rejected already). Save your precious time by doing a search first.
* When resolving merge conflicts, do `git rebase <target_branch_name>`, don't do `git pull`. Then you can start fixing the conflicts. Here is a good explanation: [link][merging-vs-rebasing-url].
[astyle-script-url]: https://gist.github.com/Chocobo1/539cee860d1eef0acfa6
[attachments-howto-url]: https://help.github.com/articles/file-attachments-on-issues-and-pull-requests
[coding-guidelines-url]: https://github.com/qbittorrent/qBittorrent/blob/master/CODING_GUIDELINES.md
[coding-guidelines-thread-url]: https://github.com/qbittorrent/qBittorrent/issues/2192
[commit-message-fix-issue-example-url]: https://github.com/qbittorrent/qBittorrent/commit/c07cd440cd46345297debb47cb260f8688975f50
[forum-url]: http://forum.qbittorrent.org/
[howto-report-bugs-url]: https://www.chiark.greenend.org.uk/~sgtatham/bugs.html
[merging-vs-rebasing-url]: https://www.atlassian.com/git/tutorials/merging-vs-rebasing
[python-url]: https://www.python.org/
[releases-url]: https://github.com/qbittorrent/qBittorrent/releases
[search-plugins-url]: https://github.com/qbittorrent/search-plugins
[uncrustify-script-url]: https://raw.githubusercontent.com/qbittorrent/qBittorrent/master/uncrustify.cfg
[wiki-url]: https://github.com/qbittorrent/qBittorrent/wiki
[builds-url]: https://sourceforge.net/projects/qbittorrent/files/

72
COPYING
View File

@@ -12,15 +12,15 @@ exception statement from your version.
----------
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
@@ -70,7 +70,7 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
@@ -269,7 +269,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -291,64 +291,4 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
END OF TERMS AND CONDITIONS

1428
Changelog

File diff suppressed because it is too large Load Diff

53
INSTALL
View File

@@ -1,58 +1,49 @@
qBittorrent - A BitTorrent client in C++ / Qt4
qBittorrent - A BitTorrent client in C++ / Qt
------------------------------------------
1) Compile and install qBittorrent with Qt4 Graphical Interface
1) Compile and install qBittorrent with Qt graphical interface
$ ./configure
$ make && make install
$ qbittorrent
will install and execute qBittorrent hopefully without any problems.
will install and execute qBittorrent.
Dependencies:
- Qt >= 4.6.0 (libqtgui, libqtcore, libqtnetwork, libqtxml, libqtdbus/optional)
- Qt >= 5.5.1
- pkg-config executable
- pkg-config
- libtorrent-rasterbar by Arvid Norberg (>= 0.15.0)
-> http://www.libtorrent.net
Be careful: another library (the one used by rTorrent) uses a similar name.
- libtorrent-rasterbar >= 1.0.6 (by Arvid Norberg)
* https://www.libtorrent.org/
* Be careful: another library (the one used by rTorrent) uses a similar name
- libboost 1.34.x (libboost-filesystem°) + libasio
or
- libboost >= 1.35.x (libboost-system, libboost-filesystem°)
°libboost-filesystem is not needed if libtorrent-rasterbar >= v0.16.x is used
- Boost >= 1.35
- python >= 2.3 (needed by search engine)
* Run time only dependency
- Python >= 2.7.9 / 3.3.0 (optional, runtime only)
* Required by the internal search engine
- geoip-database (optional)
* If qBittorrent cannot find this database, it will try to resolve countries using the Internet but it will be a lot slower.
* Run time only dependency
2) Compile and install qBittorrent without Qt4 Graphical interface
2) Compile and install qBittorrent without Qt graphical interface
$ ./configure --disable-gui
$ make && make install
$ qbittorrent
$ qbittorrent-nox
will install and execute qBittorrent hopefully without any problems.
will install and execute qBittorrent.
Dependencies:
- Qt >= 4.4.0 (libqt-devel, libqtcore, libqtnetwork)
- Qt >= 5.5.1
- pkg-config executable
- pkg-config
- libtorrent-rasterbar by Arvid Norberg (>= v0.15.0)
-> http://www.libtorrent.net
Be careful: another library (the one used by rTorrent) uses a similar name.
- libboost: libboost-filesystem, libboost-date-time, libboost-thread, libboost-serialization
- libtorrent-rasterbar >= 1.0.6 (by Arvid Norberg)
* https://www.libtorrent.org/
* Be careful: another library (the one used by rTorrent) uses a similar name
- Boost >= 1.35
DOCUMENTATION:
Please note that there is a documentation with a "compiling howto" at http://wiki.qbittorrent.org.
Please note that there is a "Compilation" section at http://wiki.qbittorrent.org.
------------------------------------------
Christophe Dumez <chris@qbittorrent.org>
sledgehammer999 <sledgehammer999@qbittorrent.org>

View File

@@ -1,9 +1,11 @@
qBittorrent - A BitTorrent client in Qt
------------------------------------------
[![Build Status](https://travis-ci.org/qbittorrent/qBittorrent.png?branch=master)](https://travis-ci.org/qbittorrent/qBittorrent)
[![TravisCI Status](https://travis-ci.org/qbittorrent/qBittorrent.svg?branch=master)](https://travis-ci.org/qbittorrent/qBittorrent)
[![AppVeyor Status](https://ci.appveyor.com/api/projects/status/github/qbittorrent/qBittorrent?branch=master&svg=true)](https://ci.appveyor.com/project/qbittorrent/qBittorrent)
[![Coverity Status](https://scan.coverity.com/projects/5494/badge.svg)](https://scan.coverity.com/projects/5494)
********************************
###Description:
### Description:
qBittorrent is a bittorrent client programmed in C++ / Qt that uses
libtorrent (sometimes called libtorrent-rasterbar) by Arvid Norberg.
@@ -12,7 +14,7 @@ out there. qBittorrent is fast, stable and provides unicode
support as well as many features.
This product includes GeoLite data created by MaxMind, available from
http://maxmind.com/
https://www.maxmind.com/
### Installation:
For installation, follow the instructions from INSTALL file, but simple:
@@ -25,12 +27,22 @@ qbittorrent
will install and execute qBittorrent hopefully without any problem.
### Public key:
Starting from v3.3.4 all source tarballs and binaries are signed.<br />
The key currently used is 4096R/[5B7CC9A2](https://pgp.mit.edu/pks/lookup?op=get&search=0x6E4A2D025B7CC9A2) with fingerprint `D8F3DA77AAC6741053599C136E4A2D025B7CC9A2`.<br />
You can also download it from [here](https://github.com/qbittorrent/qBittorrent/raw/master/5B7CC9A2.asc).<br />
**PREVIOUSLY** the following key was used to sign the v3.3.4 source tarballs and v3.3.4 Windows installer **only**: 4096R/[520EC6F6](https://pgp.mit.edu/pks/lookup?op=get&search=0xA1ACCAE4520EC6F6) with fingerprint `F4A5FD201B117B1C2AB590E2A1ACCAE4520EC6F6`.<br />
### Misc:
For more information please visit:
http://www.qbittorrent.org
https://www.qbittorrent.org
or our wiki here:
http://wiki.qbittorrent.org
Use the forum for troubleshooting before reporting bugs:
http://forum.qbittorrent.org
Please report any bug (or feature request) to:
http://bugs.qbittorrent.org
@@ -39,4 +51,3 @@ You can also meet me (sledgehammer_999) on IRC:
------------------------------------------
sledgehammer999 <sledgehammer999@qbittorrent.org>

View File

@@ -1,74 +0,0 @@
qBittorrent - A BitTorrent client in Qt4
------------------------------------------
This is the eComStation (OS/2) qBittorrent part of the readme. See also README for more general information.
Building qBittorrent
********************
Requirements
============
- gcc based build env (recommended gcc v4.4.2 or greater)
- Qt4 for eCS (OS/2) dev package (see http://svn.netlabs.org/qt4 for more information)
- libtorrent-rasterbar for eCS (OS/2) port (see http://svn.netlabs.org/ports for more information)
- boost for eCS (OS/2) port (see http://svn.netlabs.org/ports for more information)
How to build
============
First you need to create the conf.pri file in the same dir as this readme.os2 is.
the conf.pri file has the following content:
##### conf.pri content beginn #####
BINDIR = ./bin
INCDIR = ./include
LIBDIR = ./lib
DATADIR = ./share
CONFIG += staticlib
INCLUDEPATH += x:/trees/libtorrent/trunk/include
LIBS += -Lx:/trees/libtorrent/trunk/src/.libs \
-Lx:/trees/boost/trunk/stage/lib \
-Lx:/trees/openssl \
-Lx:/extras/lib
##### conf.pri content end #####
Of course all the above path references have to be adjusted to your build env.
Now you can either do a normal build or a shadow build. A shadow build has the
advantage that no created files are in the same dir as the sources are.
For a normal build do the following:
Simply type:
$ qmake
Followed by:
$ make
For a shadow build do the following:
given your sources are in x:\trees\qbittorrent\trunk create a
x:\trees\qbittorrent\build directory
Now switch to the created directory and type:
$ qmake ..\trunk
Followed by:
$ make
If all works fine you should get a working qbittorrent executable.
If you have any question regarding the eCS (OS/2) port of qBittorrent you can meet me (_diver) on IRC:
#netlabs on irc.freenode.net
------------------------------------------
Silvan Scherrer <silvan.scherrer@aroa.ch>

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
aclocal -I m4
autoconf

View File

@@ -0,0 +1,22 @@
# Helper function for coupling add_feature_info(), option(), and add_definitions()
function(optional_compile_definitions _name)
set(options FEATURE)
set(oneValueArgs DESCRIPTION DEFAULT)
set(multiValueArgs ENABLED DISABLED)
cmake_parse_arguments(OCD "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
option(${_name} "${OCD_DESCRIPTION}" ${OCD_DEFAULT})
if (${${_name}})
set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" APPEND PROPERTY COMPILE_DEFINITIONS ${OCD_ENABLED})
else()
set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" APPEND PROPERTY COMPILE_DEFINITIONS ${OCD_DISABLED})
endif()
if(${OCD_FEATURE})
add_feature_info(${_name} ${_name} "${OCD_DESCRIPTION}")
endif()
endfunction()
macro(feature_option _name _description _default)
option(${_name} "${_description}" ${_default})
add_feature_info(${_name} ${_name} "${_description}")
endmacro()

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,128 @@
# - Try to find libtorrent-rasterbar
#
# If not using pkg-config, you can pre-set LibtorrentRasterbar_CUSTOM_DEFINITIONS
# for definitions unrelated to Boost's separate compilation (which are already
# decided by the LibtorrentRasterbar_USE_STATIC_LIBS variable).
#
# Once done this will define
# LibtorrentRasterbar_FOUND - System has libtorrent-rasterbar
# LibtorrentRasterbar_INCLUDE_DIRS - The libtorrent-rasterbar include directories
# LibtorrentRasterbar_LIBRARIES - The libraries needed to use libtorrent-rasterbar
# LibtorrentRasterbar_DEFINITIONS - Compiler switches required for using libtorrent-rasterbar
# LibtorrentRasterbar_OPENSSL_ENABLED - libtorrent-rasterbar uses and links against OpenSSL
find_package(Threads REQUIRED)
find_package(PkgConfig QUIET)
macro(_detect_boost_components _outComponets librariesList)
string(REGEX MATCHALL "boost_[a-z_]+[-a-z]*" _boost_libraries "${librariesList}")
string(REGEX REPLACE "boost_([a-z_]+)[-a-z]*" "\\1" ${_outComponets} "${_boost_libraries}")
endmacro()
if(PKG_CONFIG_FOUND)
pkg_check_modules(PC_LIBTORRENT_RASTERBAR QUIET libtorrent-rasterbar)
endif()
if(LibtorrentRasterbar_USE_STATIC_LIBS)
set(LibtorrentRasterbar_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX})
endif()
if(PC_LIBTORRENT_RASTERBAR_FOUND)
set(LibtorrentRasterbar_DEFINITIONS ${PC_LIBTORRENT_RASTERBAR_CFLAGS})
else()
if(LibtorrentRasterbar_CUSTOM_DEFINITIONS)
set(LibtorrentRasterbar_DEFINITIONS ${LibtorrentRasterbar_CUSTOM_DEFINITIONS})
else()
# Without pkg-config, we can't possibly figure out the correct build flags.
# libtorrent is very picky about those. Let's take a set of defaults and
# hope that they apply. If not, you the user are on your own.
set(LibtorrentRasterbar_DEFINITIONS
-DTORRENT_USE_OPENSSL
-DTORRENT_DISABLE_GEO_IP
-DBOOST_ASIO_ENABLE_CANCELIO
-DUNICODE -D_UNICODE -D_FILE_OFFSET_BITS=64)
endif()
if(NOT LibtorrentRasterbar_USE_STATIC_LIBS)
list(APPEND LibtorrentRasterbar_DEFINITIONS
-DTORRENT_LINKING_SHARED
-DBOOST_SYSTEM_DYN_LINK -DBOOST_CHRONO_DYN_LINK)
endif()
endif()
message(STATUS "libtorrent definitions: ${LibtorrentRasterbar_DEFINITIONS}")
find_path(LibtorrentRasterbar_INCLUDE_DIR libtorrent
HINTS ${PC_LIBTORRENT_RASTERBAR_INCLUDEDIR} ${PC_LIBTORRENT_RASTERBAR_INCLUDE_DIRS}
PATH_SUFFIXES libtorrent-rasterbar)
find_library(LibtorrentRasterbar_LIBRARY NAMES torrent-rasterbar libtorrent
HINTS ${PC_LIBTORRENT_RASTERBAR_LIBDIR} ${PC_LIBTORRENT_RASTERBAR_LIBRARY_DIRS})
if(LibtorrentRasterbar_USE_STATIC_LIBS)
set(CMAKE_FIND_LIBRARY_SUFFIXES ${LibtorrentRasterbar_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
endif()
set(LibtorrentRasterbar_LIBRARIES ${LibtorrentRasterbar_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
set(LibtorrentRasterbar_INCLUDE_DIRS ${LibtorrentRasterbar_INCLUDE_DIR})
# Without pkg-config, we can't possibly figure out the correct boost dependencies
if (LibtorrentRasterbar_CUSTOM_BOOST_DEPENDENCIES)
set(_boost_components "${LibtorrentRasterbar_CUSTOM_BOOST_DEPENDENCIES}")
else(LibtorrentRasterbar_CUSTOM_BOOST_DEPENDENCIES)
if(PC_LIBTORRENT_RASTERBAR_FOUND)
_detect_boost_components(_boost_components "${PC_LIBTORRENT_RASTERBAR_LIBRARIES}")
else()
# all possible boost dependencies
set(_boost_components
date_time
system
chrono
random
thread
)
endif()
endif(LibtorrentRasterbar_CUSTOM_BOOST_DEPENDENCIES)
list(SORT _boost_components)
message(STATUS "Libtorrent Boost dependencies: ${_boost_components}")
find_package(Boost REQUIRED COMPONENTS ${_boost_components})
set(LibtorrentRasterbar_LIBRARIES ${LibtorrentRasterbar_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
foreach(_boost_cmpnt IN LISTS _boost_components)
list(APPEND LibtorrentRasterbar_LIBRARIES "Boost::${_boost_cmpnt}")
endforeach(_boost_cmpnt)
set(LibtorrentRasterbar_INCLUDE_DIRS ${LibtorrentRasterbar_INCLUDE_DIRS})
list(FIND LibtorrentRasterbar_DEFINITIONS -DTORRENT_USE_OPENSSL LibtorrentRasterbar_ENCRYPTION_INDEX)
if(LibtorrentRasterbar_ENCRYPTION_INDEX GREATER -1)
find_package(OpenSSL REQUIRED)
set(LibtorrentRasterbar_LIBRARIES ${LibtorrentRasterbar_LIBRARIES} OpenSSL::SSL OpenSSL::Crypto)
list(APPEND LibtorrentRasterbar_INCLUDE_DIRS "${OPENSSL_INCLUDE_DIR}")
set(LibtorrentRasterbar_OPENSSL_ENABLED ON)
endif()
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set LibtorrentRasterbar_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(LibtorrentRasterbar DEFAULT_MSG
LibtorrentRasterbar_LIBRARY
LibtorrentRasterbar_INCLUDE_DIR)
mark_as_advanced(LibtorrentRasterbar_INCLUDE_DIR LibtorrentRasterbar_LIBRARY
LibtorrentRasterbar_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES
LibtorrentRasterbar_ENCRYPTION_INDEX)
if (LibtorrentRasterbar_FOUND AND NOT TARGET LibtorrentRasterbar::torrent-rasterbar)
add_library(LibtorrentRasterbar::torrent-rasterbar UNKNOWN IMPORTED)
set_target_properties(LibtorrentRasterbar::torrent-rasterbar PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
IMPORTED_LOCATION "${LibtorrentRasterbar_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${LibtorrentRasterbar_INCLUDE_DIRS}"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${LibtorrentRasterbar_INCLUDE_DIRS}"
INTERFACE_LINK_LIBRARIES "${LibtorrentRasterbar_LIBRARIES}"
INTERFACE_COMPILE_OPTIONS "${LibtorrentRasterbar_DEFINITIONS}"
)
endif()

View File

@@ -0,0 +1,79 @@
# - Try to find the QtSingleApplication includes and library
# which defines
#
# QtSingleApplication_FOUND - system has QtSingleApplication
# QtSingleApplication_INCLUDE_DIR - where to find header QtSingleApplication
# QtSingleApplication_LIBRARIES - the libraries to link against to use QtSingleApplication
# QtSingleApplication_LIBRARY - where to find the QtSingleApplication library (not for general use)
# copyright (c) 2013 TI_Eugene ti.eugene@gmail.com
#
# Redistribution and use is allowed according to the terms of the FreeBSD license.
SET(QtSingleApplication_FOUND FALSE)
if (Qt5Widgets_FOUND)
set(_includeFileName qtsingleapplication.h)
else()
set(_includeFileName qtsinglecoreapplication.h)
endif()
FOREACH(TOP_INCLUDE_PATH in ${Qt5Core_INCLUDE_DIRS} ${FRAMEWORK_INCLUDE_DIR})
FIND_PATH(QtSingleApplication_INCLUDE_DIR ${_includeFileName} ${TOP_INCLUDE_PATH}/QtSolutions)
IF(QtSingleApplication_INCLUDE_DIR)
BREAK()
ENDIF()
ENDFOREACH()
SET(QtSingleApplication_NAMES ${QtSingleApplication_NAMES}
Qt5Solutions_SingleApplication-2.6 libQt5Solutions_SingleApplication-2.6
QtSolutions_SingleApplication-2.6 libQtSolutions_SingleApplication-2.6)
GET_TARGET_PROPERTY(_QT5_CORELIBRARY Qt5::Core LOCATION)
GET_FILENAME_COMPONENT(_QT5_CORELIBRARYPATH ${_QT5_CORELIBRARY} PATH)
FIND_LIBRARY(QtSingleApplication_LIBRARY
NAMES ${QtSingleApplication_NAMES}
PATHS ${_QT5_CORELIBRARYPATH}
)
IF (QtSingleApplication_LIBRARY AND QtSingleApplication_INCLUDE_DIR)
SET(QtSingleApplication_LIBRARIES ${QtSingleApplication_LIBRARY})
SET(QtSingleApplication_FOUND TRUE)
IF (CYGWIN)
IF(BUILD_SHARED_LIBS)
# No need to define QtSingleApplication_USE_DLL here, because it's default for Cygwin.
ELSE(BUILD_SHARED_LIBS)
SET (QtSingleApplication_DEFINITIONS -DQTSINGLEAPPLICATION_STATIC)
ENDIF(BUILD_SHARED_LIBS)
ENDIF (CYGWIN)
ENDIF (QtSingleApplication_LIBRARY AND QtSingleApplication_INCLUDE_DIR)
IF (QtSingleApplication_FOUND)
IF (NOT QtSingleApplication_FIND_QUIETLY)
MESSAGE(STATUS "Found QtSingleApplication: ${QtSingleApplication_LIBRARY}")
MESSAGE(STATUS " includes: ${QtSingleApplication_INCLUDE_DIR}")
ENDIF (NOT QtSingleApplication_FIND_QUIETLY)
if(NOT TARGET QtSingleApplication::QtSingleApplication)
add_library(QtSingleApplication::QtSingleApplication UNKNOWN IMPORTED)
set_target_properties(QtSingleApplication::QtSingleApplication PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${QtSingleApplication_INCLUDE_DIR}"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${QtSingleApplication_INCLUDE_DIR}"
)
if(EXISTS "${QtSingleApplication_LIBRARY}")
set_target_properties(QtSingleApplication::QtSingleApplication PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
IMPORTED_LOCATION "${QtSingleApplication_LIBRARY}")
endif()
endif(NOT TARGET QtSingleApplication::QtSingleApplication)
ELSE (QtSingleApplication_FOUND)
IF (QtSingleApplication_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find QtSingleApplication library")
ENDIF (QtSingleApplication_FIND_REQUIRED)
ENDIF (QtSingleApplication_FOUND)
MARK_AS_ADVANCED(QtSingleApplication_INCLUDE_DIR QtSingleApplication_LIBRARY)

View File

@@ -0,0 +1,26 @@
#######
# Find systemd service dir
# sets variables
# SYSTEMD_FOUND
# SYSTEMD_SERVICES_INSTALL_DIR
find_package(PkgConfig QUIET REQUIRED)
if (NOT SYSTEMD_FOUND)
pkg_check_modules(SYSTEMD "systemd")
endif(NOT SYSTEMD_FOUND)
if (SYSTEMD_FOUND AND "${SYSTEMD_SERVICES_INSTALL_DIR}" STREQUAL "")
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE}
--variable=systemdsystemunitdir systemd
OUTPUT_VARIABLE SYSTEMD_SERVICES_INSTALL_DIR)
string(REGEX REPLACE "[ \t\n]+" "" SYSTEMD_SERVICES_INSTALL_DIR
"${SYSTEMD_SERVICES_INSTALL_DIR}")
elseif (NOT SYSTEMD_FOUND AND SYSTEMD_SERVICES_INSTALL_DIR)
message (FATAL_ERROR "Variable SYSTEMD_SERVICES_INSTALL_DIR is\
defined, but we can't find systemd using pkg-config")
endif()
if (SYSTEMD_FOUND)
message(STATUS "systemd services install dir: ${SYSTEMD_SERVICES_INSTALL_DIR}")
endif(SYSTEMD_FOUND)

View File

@@ -0,0 +1,28 @@
# function for parsing version variables that are set in version.pri file
# the version identifiers there are defined as follows:
# VER_MAJOR = 3
# VER_MINOR = 4
# VER_BUGFIX = 0
# VER_BUILD = 0
# VER_STATUS = alpha
function(read_version priFile outMajor outMinor outBugfix outBuild outStatus)
file(STRINGS ${priFile} _priFileContents REGEX "^VER_.+")
# message(STATUS "version.pri version contents: ${_priFileContents}")
# the _priFileContents variable contains something like the following:
# VER_MAJOR = 3;VER_MINOR = 4;VER_BUGFIX = 0;VER_BUILD = 0;VER_STATUS = alpha # Should be empty for stable releases!
set(_regex "VER_MAJOR += +([0-9]+);VER_MINOR += +([0-9]+);VER_BUGFIX += +([0-9]+);VER_BUILD += +([0-9]+);VER_STATUS += +([0-9A-Za-z]+)?")
# note quotes around _regex, they are needed because the variable contains semicolons
string(REGEX MATCH "${_regex}" _tmp "${_priFileContents}")
if (NOT _tmp)
message(FATAL_ERROR "Could not detect project version number from ${priFile}")
endif()
# message(STATUS "Matched version string: ${_tmp}")
set(${outMajor} ${CMAKE_MATCH_1} PARENT_SCOPE)
set(${outMinor} ${CMAKE_MATCH_2} PARENT_SCOPE)
set(${outBugfix} ${CMAKE_MATCH_3} PARENT_SCOPE)
set(${outBuild} ${CMAKE_MATCH_4} PARENT_SCOPE)
set(${outStatus} ${CMAKE_MATCH_5} PARENT_SCOPE)
endfunction()

View File

@@ -0,0 +1,38 @@
macro(configure_msvc_runtime)
if(MSVC)
# Default to statically-linked runtime.
if("${MSVC_RUNTIME}" STREQUAL "")
set(MSVC_RUNTIME "static")
endif()
# Set compiler options.
set(variables
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELWITHDEBINFO
)
if(${MSVC_RUNTIME} STREQUAL "static")
message(STATUS
"MSVC -> forcing use of statically-linked runtime."
)
foreach(variable ${variables})
if(${variable} MATCHES "/MD")
string(REGEX REPLACE "/MD" "/MT" ${variable} "${${variable}}")
endif()
endforeach()
else()
message(STATUS
"MSVC -> forcing use of dynamically-linked runtime."
)
foreach(variable ${variables})
if(${variable} MATCHES "/MT")
string(REGEX REPLACE "/MT" "/MD" ${variable} "${${variable}}")
endif()
endforeach()
endif()
endif()
endmacro()

View File

@@ -0,0 +1,49 @@
###############################################################
#
# Copyright 2011 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
# may not use this file except in compliance with the License. You may
# obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
###############################################################
MACRO (GLIBC_DETECT _VERSION)
# there are multiple ways to detect glibc, but given nmi's
# cons'd up paths I will trust only gcc. I guess I could also use
# ldd --version to detect.
set(_GLIB_SOURCE_DETECT "
#include <limits.h>
#include <stdio.h>
int main()
{
printf(\"%d%d\",__GLIBC__, __GLIBC_MINOR__);
return 0;
}
")
file (WRITE ${CMAKE_CURRENT_BINARY_DIR}/build/cmake/glibc.cpp "${_GLIB_SOURCE_DETECT}\n")
try_run(POST26_GLIBC_DETECTED
POST26_GLIBC_COMPILE
${CMAKE_CURRENT_BINARY_DIR}/build/cmake
${CMAKE_CURRENT_BINARY_DIR}/build/cmake/glibc.cpp
RUN_OUTPUT_VARIABLE GLIBC_VERSION )
if (GLIBC_VERSION AND POST26_GLIBC_COMPILE )
set(${_VERSION} ${GLIBC_VERSION})
else()
message(STATUS "NOTE: Could not detect GLIBC_VERSION from compiler")
endif()
ENDMACRO (GLIBC_DETECT)

View File

@@ -0,0 +1,28 @@
# - macro similar to target_link_libraries, which links Qt components
# names of the components are passed in Qt4/Qt5 agnostic way (Core, DBus, Xml...)
# and the macro links Qt4 ones if QT4_FOUND is set or Qt5 ones if not
macro (target_link_qt_components target)
if (QT4_FOUND)
foreach(_cmp ${ARGN})
if ("${_cmp}" STREQUAL "PRIVATE" OR
"${_cmp}" STREQUAL "PUBLIC" OR
"${_cmp}" STREQUAL "INTERFACE")
list(APPEND _QT_CMPNTS "${_cmp}")
else()
list(APPEND _QT_CMPNTS "Qt4::Qt${_cmp}")
endif()
endforeach()
else (QT4_FOUND)
foreach(_cmp ${ARGN})
if ("${_cmp}" STREQUAL "PRIVATE" OR
"${_cmp}" STREQUAL "PUBLIC" OR
"${_cmp}" STREQUAL "INTERFACE")
list(APPEND _QT_CMPNTS "${_cmp}")
else()
list(APPEND _QT_CMPNTS "Qt5::${_cmp}")
endif()
endforeach()
endif (QT4_FOUND)
target_link_libraries(${target} ${_QT_CMPNTS})
endmacro()

View File

@@ -0,0 +1,102 @@
# Sets cache variable QBT_ADDITONAL_FLAGS and QBT_ADDITONAL_CXX_FLAGS to list of additional
# compiler flags for C and C++ (QBT_ADDITONAL_FLAGS) and for C++ only (QBT_ADDITONAL_CXX_FLAGS)
# and appends them to CMAKE_XXX_FLAGS variables.
# It could use add_compile_options(), but then it is needed to use generator expressions,
# and most interesting of them are not compatible with Visual Studio :(
macro(qbt_set_compiler_options)
# if (NOT QBT_ADDITONAL_FLAGS)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
#-Wshadow -Wconversion ?
set(_GCC_COMMON_C_AND_CXX_FLAGS "-Wall -Wextra"
"-Wfloat-equal -Wcast-qual -Wcast-align"
"-Wsign-conversion -Winvalid-pch -Wno-long-long"
#"-fstack-protector-all"
#"-Werror -Wno-error=deprecated-declarations"
)
set(_GCC_COMMON_CXX_FLAGS "-fexceptions -frtti"
"-Woverloaded-virtual -Wold-style-cast"
"-Wnon-virtual-dtor -Wfloat-equal -Wcast-qual -Wcast-align"
#"-Weffc++"
#"-Werror -Wno-error=cpp"
# we should modify code to make these ones obsolete
#"-Wno-error=sign-conversion -Wno-error=float-equal"
)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
# GCC 4.8 has problems with std::array and its initialization
list(APPEND _GCC_COMMON_CXX_FLAGS "-Wno-error=missing-field-initializers")
endif()
include(CheckCXXCompilerFlag)
# check for -pedantic
check_cxx_compiler_flag(-pedantic _PEDANTIC_IS_SUPPORTED)
if (_PEDANTIC_IS_SUPPORTED)
list(APPEND _GCC_COMMON_CXX_FLAGS "-pedantic -pedantic-errors")
else (_PEDANTIC_IS_SUPPORTED)
list(APPEND _GCC_COMMON_CXX_FLAGS "-Wpedantic")
endif (_PEDANTIC_IS_SUPPORTED)
if (CMAKE_SYSTEM_NAME MATCHES Linux)
# if Glibc version is 2.20 or higher, set -D_DEFAULT_SOURCE
include(MacroGlibcDetect)
message(STATUS "Detecting Glibc version...")
glibc_detect(GLIBC_VERSION)
if(${GLIBC_VERSION})
if(GLIBC_VERSION LESS "220")
message(STATUS "Glibc version is ${GLIBC_VERSION}")
else(GLIBC_VERSION LESS "220")
message(STATUS "Glibc version is ${GLIBC_VERSION}, adding -D_DEFAULT_SOURCE")
add_definitions(-D_DEFAULT_SOURCE)
endif(GLIBC_VERSION LESS "220")
endif(${GLIBC_VERSION})
endif (CMAKE_SYSTEM_NAME MATCHES Linux)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# Clang 5.0 still doesn't support -Wstrict-null-sentinel
check_cxx_compiler_flag(-Wstrict-null-sentinel _STRICT_NULL_SENTINEL_IS_SUPPORTED)
if (_STRICT_NULL_SENTINEL_IS_SUPPORTED)
list(APPEND _GCC_COMMON_CXX_FLAGS "-Wstrict-null-sentinel")
endif (_STRICT_NULL_SENTINEL_IS_SUPPORTED)
# Code should be improved to render this not needed
list(APPEND _GCC_COMMON_CXX_FLAGS "-Wno-error=unused-function -Wno-error=inconsistent-missing-override")
else ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# GCC supports it
list(APPEND _GCC_COMMON_CXX_FLAGS "-Wstrict-null-sentinel")
endif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
string(REPLACE ";" " " _GCC_COMMON_C_AND_CXX_FLAGS_STRING "${_GCC_COMMON_C_AND_CXX_FLAGS}")
string(REPLACE ";" " " _GCC_COMMON_CXX_FLAGS_STRING "${_GCC_COMMON_CXX_FLAGS}")
string(APPEND CMAKE_C_FLAGS " ${_GCC_COMMON_C_AND_CXX_FLAGS_STRING}")
string(APPEND CMAKE_CXX_FLAGS " ${_GCC_COMMON_C_AND_CXX_FLAGS_STRING} ${_GCC_COMMON_CXX_FLAGS_STRING}")
set(QBT_ADDITONAL_FLAGS "${_GCC_COMMON_C_AND_CXX_FLAGS_STRING}" CACHE STRING
"Additional qBittorent compile flags" FORCE)
set(QBT_ADDITONAL_CXX_FLAGS "${_GCC_COMMON_CXX_FLAGS_STRING}" CACHE STRING
"Additional qBittorent C++ compile flags" FORCE)
# check whether we can enable -Og optimization for debug build
# also let's enable -march=native for debug builds
check_cxx_compiler_flag(-Og _DEBUG_OPTIMIZATION_LEVEL_IS_SUPPORTED)
if (_DEBUG_OPTIMIZATION_LEVEL_IS_SUPPORTED)
string(APPEND CMAKE_C_FLAGS_DEBUG " -Og -g3 -march=native -pipe" )
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -Og -g3 -march=native -pipe" )
else(_DEBUG_OPTIMIZATION_LEVEL_IS_SUPPORTED)
string(APPEND CMAKE_C_FLAGS_DEBUG " -O0 -g3 -march=native -pipe" )
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -O0 -g3 -march=native -pipe" )
endif (_DEBUG_OPTIMIZATION_LEVEL_IS_SUPPORTED)
endif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
set(QBT_ADDITONAL_FLAGS "-wd4290 -wd4275 -wd4251 /W4" CACHE STRING "Additional qBittorent compile flags")
string(APPEND CMAKE_C_FLAGS " ${QBT_ADDITONAL_FLAGS}")
string(APPEND CMAKE_CXX_FLAGS " ${QBT_ADDITONAL_FLAGS}")
endif ()
# endif (NOT QBT_ADDITONAL_FLAGS)
endmacro(qbt_set_compiler_options)

View File

@@ -0,0 +1,17 @@
# a helper function which appends source to the target
# sources file names are relative to the the target source dir
function (qbt_target_sources _target _scope)
get_target_property(targetSourceDir ${_target} SOURCE_DIR)
set(sourcesRelative "")
foreach(source IN ITEMS ${ARGN})
if(IS_ABSOLUTE "${source}")
set(sourceAbsolutePath "${source}")
else()
get_filename_component(sourceAbsolutePath "${source}" ABSOLUTE)
endif()
file(RELATIVE_PATH sourceRelativePath "${targetSourceDir}" "${sourceAbsolutePath}")
list(APPEND sourcesRelative "${sourceRelativePath}")
endforeach()
target_sources(${_target} ${_scope} "${sourcesRelative}")
endfunction(qbt_target_sources)

View File

@@ -0,0 +1,48 @@
# macros to handle translation files
# qbt_add_translations(<target> QRC_FILE <filename> TS_FILES <filenames>)
# handles out of source builds for Qt resource files that include translations
# The function generates translations out of the supplied list of .ts files in the build directory,
# copies the .qrc file there, calls qt5_add_resources() adds its output to the target sources list.
function(qbt_add_translations _target)
set(oneValueArgs QRC_FILE)
set(multiValueArgs TS_FILES)
cmake_parse_arguments(QBT_TR "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
get_target_property(_binaryDir ${_target} BINARY_DIR)
if (NOT QBT_TR_QRC_FILE)
message(FATAL_ERROR "QRC file is empty")
endif()
if (NOT QBT_TR_TS_FILES)
message(FATAL_ERROR "TS_FILES files are empty")
endif()
if(IS_ABSOLUTE "${QBT_TR_QRC_FILE}")
file(RELATIVE_PATH _qrcToTs "${CMAKE_CURRENT_SOURCE_DIR}" "${QBT_TR_QRC_FILE}")
else()
set(_qrcToTs "${QBT_TR_QRC_FILE}")
endif()
get_filename_component(_qrcToTsDir "${_qrcToTs}" DIRECTORY)
get_filename_component(_qmFilesBinaryDir "${CMAKE_CURRENT_BINARY_DIR}/${_qrcToTsDir}" ABSOLUTE)
# to make qt5_add_translation() work as we need
set_source_files_properties(${QBT_TR_TS_FILES} PROPERTIES OUTPUT_LOCATION "${_qmFilesBinaryDir}")
qt5_add_translation(_qmFiles ${QBT_TR_TS_FILES})
set(_qrc_dest_dir "${_binaryDir}/${_qrcToTsDir}")
set(_qrc_dest_file "${_binaryDir}/${QBT_TR_QRC_FILE}")
message(STATUS "copying ${QBT_TR_QRC_FILE} to ${_qrc_dest_dir}")
file(COPY ${QBT_TR_QRC_FILE} DESTINATION ${_qrc_dest_dir})
set_source_files_properties("${_qrc_dest_file}" PROPERTIES
GENERATED True
OBJECT_DEPENDS "${_qmFiles}")
# With AUTORCC enabled rcc is ran by cmake before language files are generated,
# and thus we call rcc explicitly
qt5_add_resources(_resources "${_qrc_dest_file}")
target_sources(${_target} PRIVATE "${_resources}")
endfunction()

View File

@@ -0,0 +1,21 @@
set(BU_CHMOD_BUNDLE_ITEMS ON)
include(DeployQt5)
set(plugins "")
get_property(svgIconPluginLocation TARGET Qt5::QSvgIconPlugin
PROPERTY LOCATION_RELEASE)
list(APPEND plugins "${svgIconPluginLocation}")
get_property(svgPluginLocation TARGET Qt5::QSvgPlugin
PROPERTY LOCATION_RELEASE)
list(APPEND plugins "${svgPluginLocation}")
set(sfx "")
if(APPLE)
set(sfx ".app")
elseif(WIN32)
set(sfx "${CMAKE_EXECUTABLE_SUFFIX}")
endif()
get_target_property(exe qBittorrent OUTPUT_NAME)
install_qt5_executable("${exe}${sfx}" "${plugins}" "" "" "")

View File

@@ -0,0 +1,14 @@
if (STACKTRACE)
if ("${WINXXBITS}" NOT STREQUAL "Win64")
add_compile_options(-fno-omit-frame-pointer)
endif ("${WINXXBITS}" NOT STREQUAL "Win64")
link_libraries(libdbghelp -Wl,--export-all-symbols)
endif (STACKTRACE)
if (("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") OR ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo"))
link_libraries(-Wl,--dynamicbase)
endif()
# LIBS += libadvapi32 libshell32 libuser32
# LIBS += libcrypto.dll libssl.dll libwsock32 libws2_32 libz libiconv.dll
# LIBS += libpowrprof

View File

@@ -0,0 +1,21 @@
if (STACKTRACE)
if ("${WINXXBITS}" STREQUAL "Win64")
add_compile_options(-Zi)
else ("${WINXXBITS}" STREQUAL "Win64")
# i686 arch requires frame pointer preservation
add_compile_options(-Oy-)
endif ("${WINXXBITS}" STREQUAL "Win64")
link_libraries(dbghelp.lib)
endif (STACKTRACE)
# Enable Wide characters
add_definitions(-DTORRENT_USE_WPATH)
if (NOT QT5)
# Qt4 does not detect it itself
add_definitions(-DQ_COMPILER_INITIALIZER_LISTS)
endif (NOT QT5)
include(MacroConfigureMSVCRuntime)
set(MSVC_RUNTIME "dynamic")
configure_msvc_runtime()

Some files were not shown because too many files have changed in this diff Show More