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
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
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
thalieht
5251d93b3d
Fix some warnings
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
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
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
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
5cd5cc71a8
Replace png icons with svg
2018-08-17 21:40:04 +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
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
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
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
f214dc88fc
Put temporary files in qbt own temp folder
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
Chocobo1
2bcf09cfa5
Remove static keyword overuse
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
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
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
thalieht
8074be7644
Delete several unused #include
2018-08-12 11:08:06 +03:00