Chocobo1
718b3f0bf5
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).
6 years ago
Chocobo1
254782def6
Avoid copy-construct QString in for loop
6 years ago
thalieht
ec9120adf0
Save torrents priorities on torrent finished
...
Save fastresumes for all torrents that shifted in the queue when a torrent finished.
6 years ago
thalieht
95b02bbb2e
Save fastresumes when changing torrent priorities
6 years ago
Vladimir Golovnev (Glassez)
386d0565fe
Always save actual queue position
6 years ago
Chocobo1
903a747dba
Add config file for SVGO
6 years ago
Chocobo1
e9a8ac0544
Fix icon height/width ratio
...
It was causing misalignment in TransferListFiltersWidget text label.
6 years ago
Chocobo1
262c3a75bd
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 .
6 years ago
Chocobo1
d7aa0819d9
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.
6 years ago
sledgehammer999
14e5fc8e33
Fix mingw warning about unrecognized escape sequence
...
Warning introduced by commit 6203f23f06
6 years ago
thalieht
7ed0d13de2
Allow setting seq & first/last from context menu without metadata
6 years ago
thalieht
400eafce2b
Rename 2 methods to eliminate ambiguity
6 years ago
thalieht
4dcb0b922e
Add regex option in the search filter's context menu
...
In the search job widget.
6 years ago
Chocobo1
71dcc76a64
Replace png icons with svg
6 years ago
Chocobo1
866408151c
Remove GuiIconProvider::generateDifferentSizes()
...
Let Qt do the scaling seems to be fine.
6 years ago
sledgehammer999
ac1839fa6b
Bump Web API version
6 years ago
sledgehammer999
239f98e450
Sync translations from Transifex and run lupdate
6 years ago
Chocobo1
6f2b1823ad
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
6 years ago
Chocobo1
d9461f348f
Generate i18n .ts files in the correct directory
...
Fixup 5b7c089dd2
.
Closes #9313 .
6 years ago
Couchy
3808b5df16
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 .
6 years ago
thalieht
2485525896
Add option for regexps in the transferlist search filter's context menu
6 years ago
Chocobo1
63991cb58e
Fix I/O error after fetching magnet metadata
...
It is caused by an extra path seperator, so removing it fixes it.
Fixup 9612a75faa
.
6 years ago
sledgehammer999
fd30bf7423
Notify users on 1st time close/minimize to tray
6 years ago
sledgehammer999
2befd2927a
Revert "Set "close to tray" to false as default"
...
This reverts commit dc9ec0e408
.
6 years ago
Chocobo1
8e1f3ac016
Make ProgramUpdater upgrade to 64-bit qbt when running on 64-bit Windows
6 years ago
Lukas Greib
48cd993c92
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
6 years ago
thalieht
dc9ec0e408
Set "close to tray" to false as default
6 years ago
Chocobo1
1c7abfdf46
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
.
6 years ago
Chocobo1
9612a75faa
Put temporary files in qbt own temp folder
6 years ago
Chocobo1
e1727c9a6a
Refactor GuiIconProvider::generateDifferentSizes()
6 years ago
Vladimir Golovnev (Glassez)
2a6e38aa28
Never save resume data for already paused torrents
6 years ago
Vladimir Golovnev (Glassez)
7716a27d0d
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.
6 years ago
Chocobo1
9df67b52b8
Add const to function signature
6 years ago
Chocobo1
73b5efbb23
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.
6 years ago
Chocobo1
a68cdc5225
Refactor code
...
Make the code slightly easier to read.
6 years ago
Chocobo1
9bd8587c68
Add const to function parameters
6 years ago
Chocobo1
650f585bf3
Remove static keyword overuse
6 years ago
Chocobo1
a70219eea0
Move member variable initialization
...
Move the initialization from constructor body to member initializer
list.
Remove superfluous initializer.
6 years ago
Chocobo1
517fc39950
Remove unnecessary dynamic allocation
...
Also remove unneeded `if ()` conditional.
6 years ago
Chocobo1
56766dc08b
Avoid binding constant reference to returned object
...
In such cases, it makes no sense doing so.
6 years ago
Thomas Piccirello
13075e5099
Send all rechecks in one request
6 years ago
Thomas Piccirello
cdad0dc7d3
Add WebUI Force Reannounce option
6 years ago
Chocobo1
0217d5b4c0
Replace single-character string with character literal
...
Also remove unnecessary dynamic allocation.
6 years ago
Chocobo1
cb687ba3bd
Add options in AddNewTorrentDialog
...
The new checkboxes are: "Download in sequential order", "Download first
and last pieces first".
6 years ago
Chocobo1
1b406c97da
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.
6 years ago
Chocobo1
42eac2ee3c
Simplify code
...
This avoids "deferencing null pointer" warning from static analyzers.
6 years ago
Chocobo1
ec7dfee887
Fix typo
6 years ago
Chocobo1
e04aae686f
Cache more preference values
...
These values from Preference class are frequently used.
Also group related variables together.
6 years ago
thalieht
ae03ecea21
Add hotkey for toggling focus between the search LineEdits
6 years ago
thalieht
2e9c61c452
Limit the scope of find torrents hotkey in MainWindow
...
To TransferListWidget because it will interfere with the SearchWidget's focus hotkey
6 years ago